浏览代码

Added cam relative offset to inverse of shadow matrix.

/main
uygar 7 年前
当前提交
c9b42ea6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs

3
ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs


Matrix4x4 translation = Matrix4x4.Translate(camPosWS);
ce.current.view *= translation;
vp *= translation;
translation.SetColumn( 3, -camPosWS );
translation[15] = 1.0f;
invvp = translation * invvp;
if (sr.shadowType == GPUShadowType.Directional)
{
m_TmpSplits[key.faceIdx].x -= camPosWS.x;

正在加载...
取消
保存