Ejemplo n.º 1
0
        /// <summary>
        /// Create the material from another material instance.
        /// </summary>
        /// <param name="other">Other material to clone.</param>
        public LitMaterial(LitMaterial other)
        {
            // clone effect and set defaults
            _effect = other._effect.Clone();
            MaterialAPI asBase = this;
            other.CloneBasics(ref asBase);

            // init light params
            InitLightParams();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create the material from another material instance.
 /// </summary>
 /// <param name="other">Other material to clone.</param>
 public NormalMapLitMaterial(LitMaterial other) : base(other)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create the material from another material instance.
 /// </summary>
 /// <param name="other">Other material to clone.</param>
 public LitMaterialAlphaTest(LitMaterial other) : base(other)
 {
 }