コード例 #1
0
 /// <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));
     }
 }
コード例 #2
0
 /// <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));
     }
 }