Color combining in Multitexturing...
Actually want I want to ask if there`s any gl function that changes the normal color combining in Multitexturing...
I have a normal texture and an enviromental map over it...the enviromental map is something like a powerfull shine,but where it is black,the normal texture is black as well...i want colors to be added,not other wise...like where it is black,the normal texture remains and where`s white,the color should increase...making it shyne...should i use something else ?
Relative Games - My apps
You will need the GL_texture_env_add extension. If it''s available (even older cards should support it), just use the glTexEnv function and set the texture enc mode to ADD.
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ADD);
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ADD);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement