浏览代码

HDRenderPipeline: Fix issue when creating a reflectoin probe (was producing a null pointer)

/main
sebastienlagarde 8 年前
当前提交
c047eed2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs

3
Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs


{
var probe = cullResults.visibleReflectionProbes[probeIndex];
if (envLightCount >= k_MaxEnvLightsOnScreen)
// probe.texture can be null when we are adding a reflection probe in the editor
if (probe.texture == null || envLightCount >= k_MaxEnvLightsOnScreen)
continue;
// TODO: Support LightVolumeType.Sphere, currently in UI there is no way to specify a sphere influence volume

正在加载...
取消
保存