浏览代码

Improve variable naming

/Branch_Batching2
Evgenii Golubev 7 年前
当前提交
8aef3158
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderVariables.hlsl

6
Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderVariables.hlsl


// to represent the position of the primary (scene view) camera in order to
// have identical tessellation levels for both the scene view and shadow views.
// Otherwise, depth comparisons become meaningless!
float4x4 viewMat = transpose(GetWorldToViewMatrix());
float3 rotCamPos = viewMat[3].xyz;
return mul((float3x3)viewMat, -rotCamPos);
float4x4 trViewMat = transpose(GetWorldToViewMatrix());
float3 rotCamPos = trViewMat[3].xyz;
return mul((float3x3)trViewMat, -rotCamPos);
#endif
}

正在加载...
取消
保存