/// <summary> /// Sets the id of each registered Aura light's cookiemap in the texture2DArray /// </summary> private void SetPointCookieMapId(AuraLight auraLight) { if (auraLight.CastsCookie) { auraLight.SetCookieMapIndex(_pointLightsCookieMapsCollector.GetTextureIndex(auraLight.cookieMapRenderTexture)); } }
/// <summary> /// Sets the id of each registered Aura light's cookiemap in the texture2DArray /// </summary> private void SetDirectionalCookieMapId(AuraLight auraLight) { if (auraLight.CastsCookie) { auraLight.SetCookieMapIndex(_directionalLightsCookieMapsCollector.GetTextureIndex(auraLight.cookieMapRenderTexture)); } }