浏览代码

Perform stronger artifact clamping

/main
Evgenii Golubev 8 年前
当前提交
1e6ba10e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/ScriptableRenderLoop/ShaderLibrary/Common.hlsl

4
Assets/ScriptableRenderLoop/ShaderLibrary/Common.hlsl


float GetShiftedNdotV(inout float3 N, float3 V, bool twoSided)
{
float NdotV = dot(N, V);
float limit = 1e-6;
float limit = 1e-4;
if (!twoSided && NdotV < limit)
{
// We do not renormalize the normal because { abs(length(N) - 1.0) < limit }.

正在加载...
取消
保存