Lighting State Variables
- GL\_LIGHTING
-
Property Value Description: True if lighting is enabled Attribute group: lighting/enable Initial value: GL_FALSE Get command: glIsEnabled - GL\_COLOR\_MATERIAL
-
Property Value Description: True if color tracking is enabled Attribute group: lighting Initial value: GL_FALSE Get command: glIsEnabled - GL\_COLOR\_MATERIAL\_PARAMETER
-
Property Value Description: Material properties tracking current color Attribute group: lighting Initial value: GL_AMBIENT_AND_DIFFUSE Get command: glGetIntegerv - GL\_COLOR\_MATERIAL\_FACE
-
Property Value Description: Faces affected by color tracking Attribute group: lighting Initial value: GL_FRONT_AND_BACK Get command: glGetIntegerv - GL\_AMBIENT
-
Property Value Description: Ambient material color Attribute group: lighting Initial value: (0.2,0.2,0.2,1.0) Get command: glGetMaterialfv - GL\_DIFFUSE
-
Property Value Description: Diffuse material color Attribute group: lighting Initial value: (0.8,0.8,0.8,1.0) Get command: glGetMaterialfv - GL\_SPECULAR
-
Property Value Description: Specular material color Attribute group: lighting Initial value: (0.0,0.0,0.0,1.0) Get command: glGetMaterialfv - GL\_EMISSION
-
Property Value Description: Emissive material color Attribute group: lighting Initial value: (0.0,0.0,0.0,1.0) Get command: glGetMaterialfv - GL\_SHININESS
-
Property Value Description: Specular exponent of material Attribute group: lighting Initial value: 0.0 Get command: glGetMaterialfv - GL\_LIGHT\_MODEL\_AMBIENT
-
Property Value Description: Ambient scene color Attribute group: lighting Initial value: (0.2,0.2,0.2,1.0) Get command: glGetFloatv - GL\_LIGHT\_MODEL\_LOCAL\_VIEWER
-
Property Value Description: Viewer is local Attribute group: lighting Initial value: GL_FALSE Get command: glGetBooleanv - GL\_LIGHT\_MODEL\_TWO\_SIDE
-
Property Value Description: Use two-sided lighting Attribute group: lighting Initial value: GL_FALSE Get command: glGetBooleanv - GL\_AMBIENT
-
Property Value Description: Ambient intensity of light i Attribute group: lighting Initial value: (0.0,0.0,0.0,1.0) Get command: glGetLightfv - GL\_DIFFUSE
-
Property Value Description: Diffuse intensity of light i Attribute group: lighting Initial value: Get command: glGetLightfv - GL\_SPECULAR
-
Property Value Description: Specular intensity of light i Attribute group: lighting Initial value: Get command: glGetLightfv - GL\_POSITION
-
Property Value Description: Position of light i Attribute group: lighting Initial value: (0.0,0.0,1.0,0.0) Get command: glGetLightfv - GL\_CONSTANT\_ATTENUATION
-
Property Value Description: Constant attenuation factor Attribute group: lighting Initial value: 1.0 Get command: glGetLightfv - GL\_LINEAR\_ATTENUATION
-
Property Value Description: Linear attenuation factor Attribute group: lighting Initial value: 0.0 Get command: glGetLightfv - GL\_QUADRATIC\_ATTENUATION
-
Property Value Description: Quadratic attenuation factor Attribute group: lighting Initial value: 0.0 Get command: glGetLightfv - GL\_SPOT\_DIRECTION
-
Property Value Description: Spotlight direction of light i Attribute group: lighting Initial value: (0.0,0.0,-1.0) Get command: glGetLightfv - GL\_SPOT\_EXPONENT
-
Property Value Description: Spotlight exponent of light i Attribute group: lighting Initial value: 0.0 Get command: glGetLightfv - GL\_SPOT\_CUTOFF
-
Property Value Description: Spotlight angle of light i Attribute group: lighting Initial value: 180.0 Get command: glGetLightfv - GL\_LIGHT *i*
-
Property Value Description: True if light i enabled Attribute group: lighting/enable Initial value: GL_FALSE Get command: glIsEnabled - GL\_COLOR\_INDEXES
-
Property Value Description: C (a), C (d), and C (s) for color-index lighting Attribute group: lighting/enable Initial value: 0,1,1 Get command: glGetFloatv