浏览代码

Fixed wrong define name

/main
sebastienlagarde 7 年前
当前提交
c9d9bf6e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.render-pipelines.core/CoreRP/ShaderLibrary/UnityInstancing.hlsl

4
com.unity.render-pipelines.core/CoreRP/ShaderLibrary/UnityInstancing.hlsl


#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)

正在加载...
取消
保存