/// <summary> /// Initializes a new instance of the <see cref="ToneMappingMaterial"/> class. /// </summary> public ToneMappingMaterial() : base(DefaultLayers.Opaque) { this.Operator = OperatorType.Linear; this.Gamma = 2.2f; this.Exposure = 1.0f; this.shaderParameters = new ToneMappingEffectParameters(); this.UpdateShaderParamenters(); this.InitializeTechniques(techniques); }
/// <summary> /// Initializes a new instance of the <see cref="ToneMappingMaterial"/> class. /// </summary> public ToneMappingMaterial() : base(DefaultLayers.Opaque) { this.SamplerMode = AddressMode.LinearClamp; this.Operator = OperatorType.Linear; this.Gamma = 2.2f; this.Exposure = 1.0f; this.shaderParameters = new ToneMappingEffectParameters(); UpdateShaderParamenters(); this.InitializeTechniques(techniques); }