コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PosterizeMaterial"/> class.
        /// </summary>
        public PosterizeMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.Gamma   = 0.6f;
            this.Regions = 5f;

            this.shaderParameters         = new PosterizeEffectParameters();
            this.shaderParameters.Gamma   = this.Gamma;
            this.shaderParameters.Regions = this.Regions;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PosterizeMaterial"/> class.
        /// </summary>
        public PosterizeMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.SamplerMode = AddressMode.LinearClamp;
            this.Gamma = 0.6f;
            this.Regions = 5f;

            this.shaderParameters = new PosterizeEffectParameters();
            this.shaderParameters.Gamma = this.Gamma;
            this.shaderParameters.Regions = this.Regions;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }