/// <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(); }
/// <summary> /// Create the material from another material instance. /// </summary> /// <param name="other">Other material to clone.</param> public NormalMapLitMaterial(LitMaterial other) : base(other) { }
/// <summary> /// Create the material from another material instance. /// </summary> /// <param name="other">Other material to clone.</param> public LitMaterialAlphaTest(LitMaterial other) : base(other) { }