浏览代码

Merge pull request #1472 from Unity-Technologies/hdrp/LayeredLit-zero-value-height-blend

Add a minimum value when calculing the height blend factors to avoid …
/main
GitHub 6 年前
当前提交
38834134
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Material/LayeredLit/LayeredLitData.hlsl

2
com.unity.render-pipelines.high-definition/HDRP/Material/LayeredLit/LayeredLitData.hlsl


// Normalize
maxHeight = GetMaxHeight(maskedHeights);
maskedHeights = maskedHeights / maxHeight.xxxx;
maskedHeights = maskedHeights / max(maxHeight.xxxx, 1e-6);
return maskedHeights.yzwx;
}

正在加载...
取消
保存