/// <summary> /// Initializes a new instance of the <see cref="SobelMaterial"/> class. /// </summary> public SobelMaterial() : base(DefaultLayers.Opaque) { this.Effect = SobelEffect.Sobel; this.Threshold = 0.0049f; this.TexcoordOffset = Vector2.Zero; this.shaderParameters = new SobelEffectParameters(); this.shaderParameters.Threshold = this.Threshold; this.shaderParameters.TexcoordOffset = this.TexcoordOffset; this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }
/// <summary> /// Initializes a new instance of the <see cref="SobelMaterial"/> class. /// </summary> public SobelMaterial() : base(DefaultLayers.Opaque) { this.SamplerMode = AddressMode.LinearClamp; this.Effect = SobelEffect.Sobel; this.Threshold = 0.0049f; this.TexcoordOffset = Vector2.Zero; this.shaderParameters = new SobelEffectParameters(); this.shaderParameters.Threshold = this.Threshold; this.shaderParameters.TexcoordOffset = this.TexcoordOffset; this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }