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!
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!
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.