您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
21 行
949 B
21 行
949 B
#ifdef UNITY_SHADER_VARIABLES_MATRIX_DEFS_LEGACY_UNITY_INCLUDED
|
|
#error Mixing HDCamera and legacy Unity matrix definitions
|
|
#endif
|
|
|
|
#ifndef UNITY_SHADER_VARIABLES_MATRIX_DEFS_HDCAMERA_INCLUDED
|
|
#define UNITY_SHADER_VARIABLES_MATRIX_DEFS_HDCAMERA_INCLUDED
|
|
|
|
#define UNITY_MATRIX_M unity_ObjectToWorld
|
|
#define UNITY_MATRIX_I_M unity_WorldToObject
|
|
#define UNITY_MATRIX_V _ViewMatrix
|
|
#define UNITY_MATRIX_I_V _InvViewMatrix
|
|
#define UNITY_MATRIX_P OptimizeProjectionMatrix(_ProjMatrix)
|
|
#define UNITY_MATRIX_I_P _InvProjMatrix
|
|
#define UNITY_MATRIX_VP _ViewProjMatrix
|
|
#define UNITY_MATRIX_I_VP _InvViewProjMatrix
|
|
#define UNITY_MATRIX_MV mul(UNITY_MATRIX_V, UNITY_MATRIX_M)
|
|
#define UNITY_MATRIX_T_MV transpose(UNITY_MATRIX_MV)
|
|
#define UNITY_MATRIX_IT_MV transpose(mul(UNITY_MATRIX_I_M, UNITY_MATRIX_I_V))
|
|
#define UNITY_MATRIX_MVP mul(UNITY_MATRIX_VP, UNITY_MATRIX_M)
|
|
|
|
#endif // UNITY_SHADER_VARIABLES_MATRIX_DEFS_HDCAMERA_INCLUDED
|