浏览代码

Update LightweightPassLitTerrain.hlsl

Addressed a comment from code review
/main
GitHub 6 年前
当前提交
4bdfe711
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Terrain/LightweightPassLitTerrain.hlsl

2
com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Terrain/LightweightPassLitTerrain.hlsl


// Normalize weights before lighting and restore weights in final modifier functions so that the overal
// lighting result can be correctly weighted.
splatControl /= (weight + 1e-3h);
splatControl /= (weight + HALF_MIN);
half4 alpha = defaultAlpha * splatControl;

正在加载...
取消
保存