Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RadialBlurMaterial"/> class.
        /// </summary>
        public RadialBlurMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.Nsamples  = 10;
            this.BlurWidth = 0.1f;
            this.Center    = new Vector2(0.5f);

            this.shaderParameters           = new RadialBlurEffectParameters();
            this.shaderParameters.Nsamples  = this.Nsamples;
            this.shaderParameters.BlurWidth = this.BlurWidth;
            this.shaderParameters.Center    = this.Center;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScanlinesMaterial"/> class.
        /// </summary>
        public RadialBlurMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.SamplerMode = AddressMode.LinearClamp;
            this.Nsamples = 10;
            this.BlurWidth = 0.1f;
            this.Center = new Vector2(0.5f);

            this.shaderParameters = new RadialBlurEffectParameters();
            this.shaderParameters.Nsamples = this.Nsamples;
            this.shaderParameters.BlurWidth = this.BlurWidth;
            this.shaderParameters.Center = this.Center;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }