浏览代码

Rename to 'iblGgxSamples' to 'ggxIblSamples'

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

6
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


// Ref: Listing 19 in "Moving Frostbite to PBR"
float4 IntegrateLD(TEXTURECUBE_ARGS(tex, sampl),
TEXTURE2D(iblGgxSamples),
TEXTURE2D(ggxIblSamples),
float3 V,
float3 N,
float roughness,

if (usePrecomputedSamples)
{
float3 localL = LOAD_TEXTURE2D(iblGgxSamples, uint2(i, index)).xyz;
float3 localL = LOAD_TEXTURE2D(ggxIblSamples, uint2(i, index)).xyz;
L = mul(localL, localToWorld);
NdotL = localL.z;

if (usePrecomputedSamples)
{
omegaS = LOAD_TEXTURE2D(iblGgxSamples, uint2(i, index)).w;
omegaS = LOAD_TEXTURE2D(ggxIblSamples, uint2(i, index)).w;
}
else
{

正在加载...
取消
保存