ScottManDeath
12-26-2002, 02:02 PM
Hi
while playing around with the texture environment setting GL_COMBINE I discovered something nice.
As you know there are separate calculations done for RGB and ALPHA. You set RGB function with GL_COMBINE_RGB and ALPHA function with GL_COMBINE_ALPHA.
For GL_COMBINE_RGB the valid GL_OPERANDn_RGB are GL_SRC_COLOR,GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA
For GL_COMBINE_ALPHA the valid GL_OPERANDn_ALPHA are GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA
But when I use GL_SRC_COLOR or GL_ONE_MINUS_SRC_COLOR for GL_COMBINE_ALPHA I don't get a error!. Instead the alpha value is the greyscale version of the rgb value!!!.
Sounds interesting. Can anyone verify this on other cards? Perhaps matt?
I use a GeForce4 TI 4600 with 41.03 drivers.
Bye
ScottManDeath
while playing around with the texture environment setting GL_COMBINE I discovered something nice.
As you know there are separate calculations done for RGB and ALPHA. You set RGB function with GL_COMBINE_RGB and ALPHA function with GL_COMBINE_ALPHA.
For GL_COMBINE_RGB the valid GL_OPERANDn_RGB are GL_SRC_COLOR,GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA
For GL_COMBINE_ALPHA the valid GL_OPERANDn_ALPHA are GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA
But when I use GL_SRC_COLOR or GL_ONE_MINUS_SRC_COLOR for GL_COMBINE_ALPHA I don't get a error!. Instead the alpha value is the greyscale version of the rgb value!!!.
Sounds interesting. Can anyone verify this on other cards? Perhaps matt?
I use a GeForce4 TI 4600 with 41.03 drivers.
Bye
ScottManDeath