Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DistortionMaterial"/> class.
        /// </summary>
        /// <param name="normalTexturePath">normalTexturePath</param>
        public DistortionMaterial(string normalTexturePath)
            : base(DefaultLayers.Opaque)
        {
            this.normalTexturePath = normalTexturePath;
            this.Power             = 0.05f;

            this.shaderParameters       = new DistortionEffectParameters();
            this.shaderParameters.Power = this.Power;
            this.Parameters             = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DistortionMaterial"/> class.
        /// </summary>
        public DistortionMaterial(string normalTexturePath)
            : base(DefaultLayers.Opaque)
        {
            this.normalTexturePath = normalTexturePath;
            this.SamplerMode = AddressMode.LinearClamp;
            this.Power = 0.05f;

            this.shaderParameters = new DistortionEffectParameters();
            this.shaderParameters.Power = this.Power;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }