浏览代码

HDRenderPipeline: Missing fix in common.hlsl for LOD cross fade

/fptl_cleanup
sebastienlagarde 7 年前
当前提交
54e58bd8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderPipeline/ShaderLibrary/Common.hlsl

2
Assets/ScriptableRenderPipeline/ShaderLibrary/Common.hlsl


// We want to have a symmetry between 0..0.5 ditherFactor and 0.5..1 so no pixels are transparent during the transition
// this is handled by this test which reverse the pattern
p = (ditherFactor >= 0.5) ? (15.0 / 16.0) - p : p;
clip(ditherFactor - t);
clip(ditherFactor - p);
}
#endif // UNITY_COMMON_INCLUDED
正在加载...
取消
保存