유니티

[쉐이더노트] Built-in matrices

Raypop 2015. 1. 6. 23:40

Built-in matrices

Matrices (float4x4) supported:

UNITY_MATRIX_MVP: Current model*view*projection matrix

UNITY_MATRIX_MV: Current model*view matrix

UNITY_MATRIX_V: Current view matrix.

UNITY_MATRIX_P: Current projection matrix

UNITY_MATRIX_VP: Current view*projection matrix

UNITY_MATRIX_T_MV: Transpose of model*view matrix

UNITY_MATRIX_IT_MV: Inverse transpose of model*view matrix

UNITY_MATRIX_TEXTURE0 to UNITY_MATRIX_TEXTURE3: Texture transformation matrices