Exemplo n.º 1
0
        public DrawingLayer()
        {
            this.Parallax  = Vector3.One;
            this.Visible   = true;
            _components    = new DrawingLayerComponent[6];
            _components[0] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[1] = new DrawingLayerComponent(DrawingLayerType.Subtractive);
            _components[2] = new DrawingLayerComponent(DrawingLayerType.Alpha);
            _components[3] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[4] = new DrawingLayerComponent(DrawingLayerType.Subtractive);
            _components[5] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[5].UseRefraction = true;
                        #if !XNATOUCH
            _postProcessRequestCollection = new List <PostProcessRequest>();
#endif
        }
Exemplo n.º 2
0
        public DrawingLayer()
        {
            this.Parallax = Vector3.One;
            this.Visible = true;
            _components = new DrawingLayerComponent[6];
            _components[0] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[1] = new DrawingLayerComponent(DrawingLayerType.Subtractive);            
            _components[2] = new DrawingLayerComponent(DrawingLayerType.Alpha);
            _components[3] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[4] = new DrawingLayerComponent(DrawingLayerType.Subtractive);            
            _components[5] = new DrawingLayerComponent(DrawingLayerType.Additive);
            _components[5].UseRefraction = true;
			#if !XNATOUCH
            _postProcessRequestCollection = new List<PostProcessRequest>();
#endif
        }