Modulate blendmode

BlitzMax Forums/BlitzMax Programming/Modulate blendmode

Space_guy(Posted 2005) [#1]
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?


Robert Cummings(Posted 2005) [#2]
There is also Modulate 4x I think.


Space_guy(Posted 2005) [#3]
well 4x is alil overkill i think but 2x would actualy be very usefull for me.


Ferminho(Posted 2005) [#4]
what exactly 'modulate' is?
apart from wave modulation and blah blah


tonyg(Posted 2005) [#5]
It's like LightBlend*2


Space_guy(Posted 2005) [#6]
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


tonyg(Posted 2005) [#7]
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.


Robert Cummings(Posted 2005) [#8]
4x is used a lot by fps games. Quake3 is actually 4x and not 2x apparently. Gave them greater range or something.


ImaginaryHuman(Posted 2005) [#9]
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.