gl_BackColor bug

void main()
{
	gl_FrontColor = vec4(0.0,0.0,1.0,1.0);
 	gl_BackColor = vec4(0.5,0.5,0.5,1.0);
	gl_Position = ftransform();
}
void main()
{
	gl_FragColor = vec4(gl_Color);
} 

gl_BackColor gets ignored in the fragment shader.

repro:

  1. start render monkey or shader designer and paste this code in
  2. disable backface culling
  3. set plane as a test model
  4. rotate the plane - plane back and front face have the same blue color when they should have blue at front and grey at back.

Can any of you guys please double-check and confirm the bug?

You have to enable GL_VERTEX_PROGRAM_TWO_SIDE_ARB.

@humus
You are faster :slight_smile:

@speedy:
Pozdrav!!!

Thanks, it worked out well!

@yooyo:
Hvala! :smiley:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.