Advertisement

Color combining in Multitexturing...

Started by July 14, 2003 04:50 AM
1 comment, last by cippyboy 21 years, 7 months ago
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);
Advertisement
Use the GL_ARB_texture_env_combine extension, alot of cards support it and it''s ARB.

Death of one is a tragedy, death of a million is just a statistic.
If at first you don't succeed, redefine success.

This topic is closed to new replies.

Advertisement