浏览代码

Start using UnityPerPassStereo constants

These initial passes don't use I_P or I_VP yet, so I need to figure out a way to verify these.
/main
Robert Srinivasiah 7 年前
当前提交
1c4f5ae2
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderVariablesMatrixDefsHDCamera.hlsl

8
ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderVariablesMatrixDefsHDCamera.hlsl


#define UNITY_MATRIX_V unity_StereoMatrixV[unity_StereoEyeIndex]
#define UNITY_MATRIX_I_V unity_StereoMatrixInvV[unity_StereoEyeIndex]
#define UNITY_MATRIX_P OptimizeProjectionMatrix(unity_StereoMatrixP[unity_StereoEyeIndex])
// TEMP, use _InvProjMatrixStereo once bound
#define UNITY_MATRIX_I_P unity_StereoCameraInvProjection[unity_StereoEyeIndex]
//#define UNITY_MATRIX_I_P unity_StereoCameraInvProjection[unity_StereoEyeIndex]
#define UNITY_MATRIX_I_P _InvProjMatrixStereo[unity_StereoEyeIndex]
// TEMP - MUST FIX, use _InvViewProjMatrixStereo once bound
#define UNITY_MATRIX_I_VP mul(UNITY_MATRIX_I_V, UNITY_MATRIX_I_P)
//#define UNITY_MATRIX_I_VP mul(UNITY_MATRIX_I_V, UNITY_MATRIX_I_P)
#define UNITY_MATRIX_I_VP _InvViewProjMatrixStereo[unity_StereoEyeIndex]
#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))

正在加载...
取消
保存