浏览代码

Udate float to real

/feature-ReflectionProbeFit
Sebastien Lagarde 7 年前
当前提交
8c110633
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/CommonLighting.hlsl

4
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/CommonLighting.hlsl


}
// same as regular refract except there is not the test for total internal reflection
float3 RefractNoTIR(float3 X, float3 N, float ieta)
real3 RefractNoTIR(real3 X, real3 N, real ieta)
float XdotN = saturate(dot(N, X));
real XdotN = saturate(dot(N, X));
return ieta * X + (sqrt(1 + ieta * ieta * (XdotN * XdotN - 1)) - ieta * XdotN) * N;
}
正在加载...
取消
保存