浏览代码

Fix a regression in the tessellation code

/main
GitHub 7 年前
当前提交
7b280e46
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitDataMeshModification.hlsl

3
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitDataMeshModification.hlsl


if (_TessellationFactorTriangleSize > 0.0)
{
// return a value between 0 and 1
edgeTessFactors *= GetScreenSpaceTessFactor( p0, p1, p2, UNITY_MATRIX_VP, _ScreenSize, _TessellationFactorTriangleSize); // Use primary camera view
// Warning: '_ViewProjMatrix' is not the same as UNITY_MATRIX_VP for shadow views!
edgeTessFactors *= GetScreenSpaceTessFactor( p0, p1, p2, _ViewProjMatrix, _ScreenSize, _TessellationFactorTriangleSize); // Use primary camera view
}
// Distance based tessellation

正在加载...
取消
保存