Esempio n. 1
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>();
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="volumetricTexturesSize">The desired size of the composed Texture3D (made of the volumes' texture masks)</param>
        public VolumesManager()
        {
            _registredVolumes = new List <AuraVolume>();
            if (_culler == null)
            {
                _culler = new ObjectsCuller <AuraVolume>();
            }
            _volumeTextureComposer = new VolumetricTextureArrayComposer(TextureFormat.RGBA32, volumetricTexturesSize);
            _volumeTextureComposer.OnTextureUpdated += VolumeTextureComposer_onTextureUpdated;

            Aura.OnPreRenderEvent += Aura_onPreRenderEvent;

            _isEnabled = true;
        }
Esempio n. 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>();
 }