Modulate blendmode

BlitzMax Forums/BlitzMax Programming/Modulate blendmode

Is there any way to add a modulate2x blendmode in blitzmax? I use 2 passes now with lightblend and shadeblend but it feels like a waste of fillrate.

anyway did anyone make something like this in bmax?

There is also Modulate 4x I think.

well 4x is alil overkill i think but 2x would actualy be very usefull for me.

what exactly 'modulate' is?
apart from wave modulation and blah blah

It's like LightBlend*2

i would say its like lightblend + shadeblend in one. all rgb values over 128 is lighted and all below is shaded. good for light/shadow effects

ahh, OK. Something I've always thought I knew but didn't.
Using shadeblend and lightblend is a pain because shadeblend doesn't mask 'transparent' pixels.
I never really got an answer why it doesn't.

4x is used a lot by fps games. Quake3 is actually 4x and not 2x apparently. Gave them greater range or something.

I think there is an opengl mode you can use to do that. ie GL_MODULATE as one of the parameters for the blend mode.