浏览代码

Merge pull request #1254 from Unity-Technologies/Branch_DisablePerObjectCulling

Disable per object light/probe culling in HDRP.
/main
GitHub 7 年前
当前提交
47235deb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs


public void UpdateCullingParameters(ref ScriptableCullingParameters cullingParams)
{
m_ShadowMgr.UpdateCullingParameters( ref cullingParams );
// In HDRP we don't need per object light/probe info so we disable the native code that handles it.
cullingParams.cullingFlags |= CullFlag.DisablePerObjectCulling;
}
public bool IsBakedShadowMaskLight(Light light)

正在加载...
取消
保存