浏览代码

Update comments

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

4
Assets/ScriptableRenderPipeline/ShaderLibrary/AreaLighting.hlsl


#else
float x = sinSqSigma;
float y = cosOmega;
float b = (x + x * y) * 0.5; // Bilinear approximation
float z = b * sqrt(x); // Area light approximation
float b = (x + x * y) * 0.5; // Bilinear approximation of a sphere light
float z = b * sqrt(x); // Our approximation of a rectangular light
return lerp(z * z, z, h); // Horizon fade
#endif

正在加载...
取消
保存