浏览代码

fixed shadow kewords setup

/main
Felipe Lira 7 年前
当前提交
b44aeec0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

5
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


int vertexLightsCount = lightData.totalAdditionalLightsCount - lightData.pixelAdditionalLightsCount;
CoreUtils.SetKeyword(cmd, "_SHADOWS_ENABLED", m_ShadowPass.HasDirectionalShadowmap);
bool shadowsEnabled = m_ShadowPass.HasDirectionalShadowmap || m_ShadowPass.HasLocalLightsShadowmap;
CoreUtils.SetKeyword(cmd, "_SHADOWS_ENABLED", shadowsEnabled);
CoreUtils.SetKeyword(cmd, "_SHADOWS_ENABLED", m_ShadowPass.HasLocalLightsShadowmap);
//CoreUtils.SetKeyword(cmd, "_SHADOWS_ENABLED", m_ShadowPass.HasDirectionalShadowmap);
//CoreUtils.SetKeyword(cmd, "_LOCAL_SHADOWS_ENABLED", m_ShadowPass.HasLocalLightsShadowmap);
//TIM: Not used in shader for V1 to reduce keywords

正在加载...
取消
保存