浏览代码

Fixed the issue that shadows were not being disabled when NO_SHADOWS were select in the pipeline asset.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
b5ec9f9b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

3
Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


private void InitializeMainShadowLightIndex(VisibleLight[] lights, out int shadowIndex)
{
shadowIndex = -1;
if (m_Asset.CurrShadowType == ShadowType.NO_SHADOW)
return;
float maxIntensity = -1;
for (int i = 0; i < lights.Length; ++i)
{

正在加载...
取消
保存