cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Keith_Jeffery
Journeyman III

GL_LIGHT_MODEL_TWO_SIDE doesn't work with only a fragment shader

Our application has one shader, written in GLSL, that's only a fragment shader (we don't supply a vertex shader in this case). It works wonderfully until we specify

glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);

 

The display then gets, to get technical, all sorts of messed up. This is the case even when we call

glEnable(GL_VERTEX_PROGRAM_TWO_SIDE);

 

Is this a bug, or am I missing something?

0 Likes
1 Reply
pboudier
Staff

hi,

could you send a small test case so that we can reproduce it ?

thanks,

Pierre B.

0 Likes