/// <summary>
        /// Initializes a new instance of the <see cref="FilmGrainMaterial" /> class.
        /// </summary>
        /// <param name="pathGrainTexture">The path grain/noise texture.</param>
        public FilmGrainMaterial(string pathGrainTexture)
            : base(DefaultLayers.Opaque)
        {
            this.pathGrainTexture  = pathGrainTexture;
            this.GrainIntensityMin = 0.1f;
            this.GrainIntensityMax = 0.2f;
            this.GrainSize         = 2.0f;

            this.random = new Random(23);

            this.shaderParameters = new FilmGrainEffectParameters();
            this.SetShaderParamenters();

            this.InitializeTechniques(techniques);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="FilmGrainMaterial" /> class.
        /// </summary>
        /// <param name="pathGrainTexture">The path grain/noise texture.</param>
        public FilmGrainMaterial(string pathGrainTexture)
            : base(DefaultLayers.Opaque)
        {
            this.pathGrainTexture = pathGrainTexture;
            this.SamplerMode = AddressMode.LinearClamp;
            this.GrainIntensityMin = 0.1f;
            this.GrainIntensityMax = 0.2f;
            this.GrainSize = 2.0f;

            this.random = new Random(23);

            this.shaderParameters = new FilmGrainEffectParameters();
            SetShaderParamenters();

            this.InitializeTechniques(techniques);
        }