浏览代码

Remove a redundant addition

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

3
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


return acc / sampleCount;
}
// 'sampleCount' must be 16, 32, 64 or 256.
// Ref: Listing 19 in "Moving Frostbite to PBR"
float4 IntegrateLD(TEXTURECUBE_ARGS(tex, sampl),
float3 V,

for (uint i = 0; i < sampleCount; ++i)
{
float2 u = Hammersley2dSeq(i, sampleCount);
u = frac(u + randNum + 0.5);
u = frac(u + randNum);
float3 H;
float3 L;

正在加载...
取消
保存