Ejemplo n.º 1
0
        /// <summary>
        /// Initialize default values for this instance-
        /// </summary>
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.Quality       = EffectQuality.Low;
            this.HaloEnabled   = true;
            this.AutoIntensity = true;

            this.Radius         = 0.5f;
            this.EdgeSharpness  = 1f;
            this.SunIntensity   = 0.095f;
            this.DepthThreshold = 0.9999f;

            this.Density  = 0.8f;
            this.Weight   = 0.8f;
            this.Decay    = 0.86f;
            this.Exposure = 1f;
            this.Blend    = 1f;

            this.LightCenter      = new Vector2(0.5f);
            this.ShaftTint        = Color.White;
            this.shaderParameters = new LSEffectParameters();
            this.Parameters       = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize default values for this instance-
        /// </summary>
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.Quality = EffectQuality.Low;
            this.HaloEnabled = true;
            this.AutoIntensity = true;

            this.Radius = 0.5f;
            this.EdgeSharpness = 1f;
            this.SunIntensity = 0.095f;
            this.DepthThreshold = 0.9999f;

            this.Density = 0.8f;
            this.Weight = 0.8f;
            this.Decay = 0.86f;
            this.Exposure = 1f;
            this.Blend = 1f;

            this.SamplerMode = AddressMode.LinearClamp;
            this.LightCenter = new Vector2(0.5f);
            this.ShaftTint = Color.White;
            this.shaderParameters = new LSEffectParameters();
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }