浏览代码

[PlanarReflection] fix cache type check

/main
Frédéric Vauchelles 7 年前
当前提交
e34bb3af
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoopDef.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoopDef.hlsl


// This code will be inlined as lightLoopContext is hardcoded in the light loop
if (lightLoopContext.sampleReflection == SINGLE_PASS_CONTEXT_SAMPLE_REFLECTION_PROBES)
{
if (index == ENVCACHETYPE_TEXTURE2D)
if (cacheType == ENVCACHETYPE_TEXTURE2D)
else if (index == ENVCACHETYPE_CUBEMAP)
else if (cacheType == ENVCACHETYPE_CUBEMAP)
return SAMPLE_TEXTURECUBE_ARRAY_LOD_ABSTRACT(_EnvCubemapTextures, s_trilinear_clamp_sampler, texCoord, index, lod);
return float4(0, 0, 0, 0);
}

正在加载...
取消
保存