PDA

View Full Version : Can anybody give an example to use color bias/scale when rendering texture image?



08-06-2003, 12:44 PM
Can anybody give a demo to show how to use

glPixelTransferf(GL_RED_SCALE,fScale);
...

glPixelTransferf(GL_RED_BIAS,fBias);
...

to do RGB scale/bias control when rendering a texture image.

Thanks!

Relic
08-07-2003, 12:59 AM
glPixelTransferf doesn't affect textured rendering. It is used during pixel operations of which texture downloads with glTexImage2D is one.
You might want to search for the GL_COLOR_MATRIX functionality of the ARB-imaging subset of OpenGL.