浏览代码

Add a comment

/main
GitHub 7 年前
当前提交
fdf6a3e2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl

1
ScriptableRenderPipeline/Core/CoreRP/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
// TODO: replace the test (ditherFactor >= 0.5) with (isLod0) to avoid the distracting pattern flip around 0.5.
p = (ditherFactor >= 0.5) ? p : 1 - p;
clip(ditherFactor - p);
}

正在加载...
取消
保存