void SetLightModelLocalViewer( BOOL bMode );


bMode if TRUE the specular reflections are computed according to the current eye position. If FALSE specular reflection angles are computed as if the eye were at an infinite distance.


Use the SetLightModelLocalViewer method function to specify how specular reflections are computed. For more information see the OpenGL glLightModel function documentation.

Note:The SetLightModelLocalViewer member function uses the current OpenGL rendering context. Ensure that the current rendering context is what you intend to use. Use wglMakeCurrent or DrawBegin member functions to set the current rendering context.

See Also

SetLightingMode, GetLightingMode, GetNumberOfLights, SetLightState, GetLightState, GetLightModelLocalViewer