/// <summary> /// Initializes a new instance of the <see cref="AntialiasingMaterial"/> class. /// </summary> public AntialiasingMaterial() : base(DefaultLayers.Opaque) { this.TexcoordOffset = Vector2.Zero; this.Span_max = 8.0f; this.Reduce_Mul = 1.0f / 8.0f; this.Reduce_Min = 1.0f / 128.0f; this.shaderParameters = new AntialiasingEffectParameters(); this.shaderParameters.TexcoordOffset = this.TexcoordOffset; this.shaderParameters.Span_max = this.Span_max; this.shaderParameters.Reduce_Mul = this.Reduce_Mul; this.shaderParameters.Reduce_Min = this.Reduce_Min; this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }
/// <summary> /// Initializes a new instance of the <see cref="AntialiasingMaterial"/> class. /// </summary> public AntialiasingMaterial() : base(DefaultLayers.Opaque) { this.SamplerMode = AddressMode.LinearClamp; this.TexcoordOffset = Vector2.Zero; this.Span_max = 8.0f; this.Reduce_Mul = 1.0f / 8.0f; this.Reduce_Min = 1.0f / 128.0f; this.shaderParameters = new AntialiasingEffectParameters(); this.shaderParameters.TexcoordOffset = this.TexcoordOffset; this.shaderParameters.Span_max= this.Span_max; this.shaderParameters.Reduce_Mul = this.Reduce_Mul; this.shaderParameters.Reduce_Min = this.Reduce_Min; this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }