PDA

View Full Version : Modulating with modified texture



jamse101
02-19-2010, 01:10 PM
Is there some way to achieve following:

C = Cf * [Cs*val + (1.0-val)];

Using texture function or texture combiner function? Cf is fragment color, Cs texture color and val is value between 0.0 and 1.0.

DarkShadow44
02-19-2010, 02:10 PM
Sure. Did you try shaders ?

Here is a NEHE example (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=37)

jamse101
02-19-2010, 02:40 PM
I'm reading Redbook right now and haven't yet gotten to shading language..