浏览代码

Modify OptimizeProjectionMatrix() to work with oblique projections

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
ef40d37f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/ShaderVariables.hlsl

6
ScriptableRenderPipeline/HDRenderPipeline/ShaderVariables.hlsl


// Orthographic Perspective Combined(OR)
// | x 0 0 x | | x 0 x 0 | | x 0 x x |
// | 0 x 0 x | | 0 x x 0 | | 0 x x x |
// | 0 0 x x | | 0 0 x x | | 0 0 x x |
// | x x x x | | x x x x | | x x x x | <- oblique projection row
M._21_31_41 = 0;
M._12_32_42 = 0;
M._21_41 = 0;
M._12_42 = 0;
return M;
}

正在加载...
取消
保存