/// <summary>
        /// Initializes a new instance of the <see cref="ScreenOverlayMaterial"/> class.
        /// </summary>
        /// <param name="overlayTexturePath">overlayTexturePath</param>
        public ScreenOverlayMaterial(string overlayTexturePath = null)
            : base(DefaultLayers.Opaque)
        {
            this.OverlayMode        = BlendMode.Multiply;
            this.overlayTexturePath = overlayTexturePath;
            this.Intensity          = 1.0f;

            this.shaderParameters           = new ScreenOverlayEffectParameters();
            this.shaderParameters.Intensity = this.Intensity;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScreenOverlayMaterial"/> class.
        /// </summary>
        public ScreenOverlayMaterial(string overlayTexturePath)
            : base(DefaultLayers.Opaque)
        {
            this.OverlayMode        = BlendMode.Overlay;
            this.overlayTexturePath = overlayTexturePath;
            this.SamplerMode        = AddressMode.LinearClamp;
            this.Intensity          = 1.0f;

            this.shaderParameters           = new ScreenOverlayEffectParameters();
            this.shaderParameters.Intensity = this.Intensity;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScreenOverlayMaterial"/> class.
        /// </summary>
        public ScreenOverlayMaterial(string overlayTexturePath)
            : base(DefaultLayers.Opaque)
        {
            this.OverlayMode = BlendMode.Overlay;
            this.overlayTexturePath = overlayTexturePath;
            this.SamplerMode = AddressMode.LinearClamp;
            this.Intensity = 1.0f;

            this.shaderParameters = new ScreenOverlayEffectParameters();
            this.shaderParameters.Intensity = this.Intensity;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }