/// <summary>
        /// Initializes a new instance of the <see cref="GlowMaterial"/> class.
        /// </summary>
        public GlowMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.TexcoordOffset = Vector2.Zero;
            this.GlowScale      = 8.0f;
            this.Intensity      = 3f;

            this.shaderParameters = new GlowEffectParameters();
            this.shaderParameters.TexcoordOffset = this.TexcoordOffset;
            this.shaderParameters.Intensity      = this.Intensity;
            this.shaderParameters.GlowScale      = this.GlowScale;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GlowMaterial"/> class.
        /// </summary>
        public GlowMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.SamplerMode = AddressMode.LinearClamp;
            this.TexcoordOffset = Vector2.Zero;
            this.GlowScale = 8.0f;
            this.Intensity = 3f;

            this.shaderParameters = new GlowEffectParameters();
            this.shaderParameters.TexcoordOffset = this.TexcoordOffset;
            this.shaderParameters.Intensity = this.Intensity;
            this.shaderParameters.GlowScale = this.GlowScale;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }