/// <summary>
        /// Default value for this instance.
        /// </summary>
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.Technique        = Techniques.Exponencial;
            this.StartFog         = 0.02f;
            this.EndFog           = 0.8f;
            this.FogColor         = new Color(0.5f, 0.6f, 0.7f);
            this.FogDensity       = 10f;
            this.shaderParameters = new FogEffectParameters();
            this.Parameters       = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
示例#2
0
        /// <summary>
        /// Default value for this instance.
        /// </summary>
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.Technique = Techniques.Exponencial;
            this.SamplerMode = AddressMode.LinearClamp;
            this.StartFog = 0.02f;
            this.EndFog = 0.8f;
            this.FogColor = new Color(0.5f, 0.6f, 0.7f);
            this.FogDensity = 10f;
            this.shaderParameters = new FogEffectParameters();
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }