|
|
|
|
|
|
|
|
|
|
|
|
|
|
#undef UNITY_MATRIX_M |
|
|
|
#ifdef OVERRIDE_PRE_CAMERA_TRANSLATION_TO_MATRIX |
|
|
|
#ifdef MODIFY_MATRIX_FOR_CAMERA_RELATIVE_RENDERING |
|
|
|
#define UNITY_MATRIX_M ApplyPreCameraTranslationToMatrix(UNITY_ACCESS_INSTANCED_PROP(unity_Builtins0, unity_ObjectToWorldArray)) |
|
|
|
#else |
|
|
|
#define UNITY_MATRIX_M UNITY_ACCESS_INSTANCED_PROP(unity_Builtins0, unity_ObjectToWorldArray) |
|
|
|
|
|
|
|
|
|
|
#undef UNITY_MATRIX_I_M |
|
|
|
#ifdef OVERRIDE_PRE_CAMERA_TRANSLATION_TO_MATRIX |
|
|
|
#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)) |
|
|
|
#else |
|
|
|
#define UNITY_MATRIX_I_M UNITY_ACCESS_INSTANCED_PROP(MERGE_UNITY_BUILTINS_INDEX(UNITY_WORLDTOOBJECTARRAY_CB), unity_WorldToObjectArray) |
|
|
|