/// <summary> /// Initializes a new instance of the <see cref="DisappearMaterial"/> class. /// </summary> /// <param name="diffuseMap">The diffuse map.</param> public DisappearMaterial(string diffuseMap, string opacityMap, string burnMap) : base(DefaultLayers.Opaque) { this.diffuseMapPath = diffuseMap; this.opacityMapPath = opacityMap; this.burnMapPath = burnMap; this.BurnSize = 10f; this.shaderParameters = new DisappearMaterialParameters(); this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }
/// <summary> /// Initializes a new instance of the <see cref="DisappearMaterial"/> class. /// </summary> /// <param name="diffuseMap">The diffuse map.</param> public DisappearMaterial(string diffuseMap, string opacityMap, string burnMap) : base(DefaultLayers.Opaque) { this.SamplerMode = AddressMode.LinearClamp; this.diffuseMapPath = diffuseMap; this.opacityMapPath = opacityMap; this.burnMapPath = burnMap; this.BurnSize = 10f; this.shaderParameters = new DisappearMaterialParameters(); this.Parameters = this.shaderParameters; this.InitializeTechniques(techniques); }