Reference Manual>Shader Reference>Writing vertex and fragment shaders>Built-in state variables in shader programs
Often in shader programs you need to access some global state, for example, the current model*view*projection matrix, the current ambient color, and so on. There's no need to declare these variables for the built-in state, you can just use them in shader programs.
Matrices (float4x4) supported:
Vectors (float4) supported:
Page last updated: 2013-02-16