|
|
|
|
|
|
|
|
|
|
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
|
|
|
|