Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PixelateMaterial"/> class.
        /// </summary>
        public PixelateMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.PixelSize = new Vector2(10);

            this.shaderParameters           = new PixelateEffectParameters();
            this.shaderParameters.PixelSize = this.PixelSize;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PixelateMaterial"/> class.
        /// </summary>
        public PixelateMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.SamplerMode = AddressMode.LinearClamp;
            this.PixelSize = new Vector2(10);

            this.shaderParameters = new PixelateEffectParameters();
            this.shaderParameters.PixelSize = this.PixelSize;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }