/// <summary> /// Sets the id of the Aura light's shadowmap in the texture2DArray /// </summary> private void SetPointShadowMapId(AuraLight auraLight) { if (auraLight.CastsShadows) { auraLight.SetShadowMapIndex(_pointLightsShadowMapsCollector.GetTextureIndex(auraLight.shadowMapRenderTexture)); } }
/// <summary> /// Sets the id of the Aura light's shadowmap in the texture2DArray /// </summary> private void SetDirectionalShadowMapId(AuraLight auraLight) { if (auraLight.CastsShadows) { auraLight.SetShadowMapIndex(_directionalLightsShadowMapsCollector.GetTextureIndex(auraLight.shadowMapRenderTexture)); } }