Contents / Previous / Next


Secondary Specular Highlights

When a texture is modulated (GL_MODULATE) with a lit surface (fragments according to the standard light model) the visibility of specular highlights is greatly reduced.

The solution to this problem is to apply highlighting again on the mapped texture:


 gl.glLightModeli( 
      GL.GL_LIGHT_MODEL_COLOR_CONTROL, 
      GL.GL_SEPARATE_SPECULAR_COLOR );


This is the standard mode:

 gl.glLightModeli( 
      GL.GL_LIGHT_MODEL_COLOR_CONTROL, 
      GL.GL_SINGLE_COLOR );