Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AntialiasingMaterial"/> class.
        /// </summary>
        public TilingMaterial()
            : base(DefaultLayers.Opaque)
        {
            this.SamplerMode = AddressMode.LinearClamp;
            this.EdgeColor = new Vector3(0.7f);
            this.NumTiles = 75f;
            this.Threshhold = 0.15f;

            this.shaderParameters = new TilingEffectParameters();
            this.shaderParameters.EdgeColor = this.EdgeColor;
            this.shaderParameters.NumTiles = this.NumTiles;
            this.shaderParameters.Threshhold = this.Threshhold;
            this.Parameters = this.shaderParameters;

            this.InitializeTechniques(techniques);
        }