|
|
|
|
|
|
|
|
|
|
#undef UNITY_MATRIX_M |
|
|
|
#ifdef MODIFY_MATRIX_FOR_CAMERA_RELATIVE_RENDERING |
|
|
|
#define UNITY_MATRIX_M ApplyPreCameraTranslationToMatrix(UNITY_ACCESS_INSTANCED_PROP(unity_Builtins0, unity_ObjectToWorldArray)) |
|
|
|
#define UNITY_MATRIX_M ApplyCameraTranslationToMatrix(UNITY_ACCESS_INSTANCED_PROP(unity_Builtins0, unity_ObjectToWorldArray)) |
|
|
|
#else |
|
|
|
#define UNITY_MATRIX_M UNITY_ACCESS_INSTANCED_PROP(unity_Builtins0, unity_ObjectToWorldArray) |
|
|
|
#endif |
|
|
|
|
|
|
#undef UNITY_MATRIX_I_M |
|
|
|
#ifdef MODIFY_MATRIX_FOR_CAMERA_RELATIVE_RENDERING |
|
|
|
#define UNITY_MATRIX_I_M ApplyPreCameraTranslationToInverseMatrix(UNITY_ACCESS_INSTANCED_PROP(MERGE_UNITY_BUILTINS_INDEX(UNITY_WORLDTOOBJECTARRAY_CB), unity_WorldToObjectArray)) |
|
|
|
#define UNITY_MATRIX_I_M ApplyCameraTranslationToInverseMatrix(UNITY_ACCESS_INSTANCED_PROP(MERGE_UNITY_BUILTINS_INDEX(UNITY_WORLDTOOBJECTARRAY_CB), unity_WorldToObjectArray)) |
|
|
|
#else |
|
|
|
#define UNITY_MATRIX_I_M UNITY_ACCESS_INSTANCED_PROP(MERGE_UNITY_BUILTINS_INDEX(UNITY_WORLDTOOBJECTARRAY_CB), unity_WorldToObjectArray) |
|
|
|
#endif |
|
|
|