#FOG: color your dream fogs
yup, now mr foggy can be color customize. select your favourite color and walaaaa, there you have it ...
i think this would be the shortest code of any function for mr foggy at the moment
[code]
setcolorForMrFoggy(red, green, blue)
{
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glColor4f(red, green, blue, 0.50);
}
[/code]
yup! that's it. the first line of glTexEnvf; texture will modulate/blend with the color from the second line; glColor4f. did you get it?
0 Comments:
Post a Comment
<< Home