Available state variables
Binding Underlying State
--------------------------------- ---------------------------
state.matrix.modelview[n] modelview matrix n
state.matrix.projection projection matrix
state.matrix.mvp modelview-projection matrix
state.matrix.texture[n] texture matrix n
state.material.ambient (r,g,b,a) front ambient material color
state.material.diffuse (r,g,b,a) front diffuse material color
state.material.specular (r,g,b,a) front specular material color
state.material.emission (r,g,b,a) front emissive material color
state.material.shininess (s,0,0,1) front material shininess
state.light[n].ambient (r,g,b,a) light n ambient color
state.light[n].diffuse (r,g,b,a) light n diffuse color
state.light[n].specular (r,g,b,a) light n specular color
state.light[n].position (x,y,z,w) light n position
CGSetStateMatrixParameter ("modelViewProj", CG_GL_MODELVIEW_PROJECTION_MATRIX);
chess_scene_reflection->setStateMatrixParameter ("modelToWorld", CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_IDENTITY);
...
