浏览代码

Disable per object light/probe culling in HDRP.

/main
Julien Ignace 7 年前
当前提交
2aff9f03
共有 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)

正在加载...
取消
保存