Exemplo n.º 1
0
        public SunlightSystem(GraphicsDevice device, EffectFactory effectFactory, IComponentContainer <Sunlight> Lights,
                              CascadedShadowMapFactory cascadedShadowMapFactory)
        {
            this.Device = device;
            this.Effect = effectFactory.Construct <SunlightEffect>();
            this.Lights = Lights;

            this.FullScreenTriangle = new FullScreenTriangle();
            this.Frustum            = new Frustum();
        }
Exemplo n.º 2
0
 public SunlightFactory(GraphicsDevice device, IComponentContainer <Sunlight> container, CascadedShadowMapFactory cascadedShadowMapFactory)
     : base(device, container)
 {
     this.CascadedShadowMapFactory = cascadedShadowMapFactory;
 }