浏览代码

Add a height scaling factor for POM

/Branch_Batching2
Evgenii Golubev 7 年前
当前提交
ae05ac6e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl

4
Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl


{
float maxDisplacement = 0.0;
#if defined(_HEIGHTMAP)
maxDisplacement = _HeightAmplitude;
// TEMP: achieve parity between tessellation and POM w.r.t. height for a single tile.
// TODO: for tiling, the max. height of the tessellated height map should be reduced by NumTiles.
maxDisplacement = 0.1 * _HeightAmplitude;
#endif
return maxDisplacement;
}

正在加载...
取消
保存