Beispiel #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DirectionalLightsManager()
 {
     _shadowmapsCollector   = new ShadowmapsCollector(DirectionalLightsManager.ShadowMapSize.x, DirectionalLightsManager.ShadowMapSize.y);
     _shadowDataCollector   = new DirectionalShadowDataCollector(32, 1);
     _cookieMapsCollector   = new Texture2DArrayComposer(DirectionalLightsManager.cookieMapSize.x, DirectionalLightsManager.cookieMapSize.y, TextureFormat.R8, true);
     _previousCascadesCount = QualitySettings.shadowCascades;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PointLightsManager()
 {
     _shadowmapsCollector = new ShadowmapsCollector(PointLightsManager.shadowMapSize.x, PointLightsManager.shadowMapSize.y);
     _cookieMapsCollector = new Texture2DArrayComposer(PointLightsManager.cookieMapSize.x, PointLightsManager.cookieMapSize.y, TextureFormat.R8, true);
     _cookieMapsCollector.alwaysGenerateOnUpdate = true;
     _culler = new ObjectsCuller <AuraLight>();
 }
Beispiel #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SpotLightsManager()
 {
     _shadowmapsCollector = new ShadowmapsCollector(SpotLightsManager.shadowMapSize.x, SpotLightsManager.shadowMapSize.y);
     _cookieMapsCollector = new Texture2DArrayComposer(SpotLightsManager.cookieMapSize.x, SpotLightsManager.cookieMapSize.y, TextureFormat.R8, true);
     _culler = new ObjectsCuller <AuraLight>();
 }