Esempio n. 1
0
        public virtual bool IsSame(BaseAsset other)
        {
            bool same = true;

            same &= this.Name == other.Name;
            same &= this.Type == other.Type;
            return(same);
        }
Esempio n. 2
0
        public override void CopyValues(BaseAsset source)
        {
            base.CopyValues(source);
            MaterialAsset ma = source as MaterialAsset;

            AlbedoColor       = ma.AlbedoColor;
            AlphaValue        = ma.AlphaValue;
            RoughnessValue    = ma.RoughnessValue;
            MetallicValue     = ma.MetallicValue;
            Tile              = ma.Tile;
            Shift             = ma.Shift;
            AlbedoMapAsset    = ma.AlbedoMapAsset;
            AlbedoMapAsset    = ma.AlbedoMapAsset;
            NormalMapAsset    = ma.NormalMapAsset;
            RoughnessMapAsset = ma.RoughnessMapAsset;
            MetallicMapAsset  = ma.MetallicMapAsset;
            OcclusionMapAsset = ma.OcclusionMapAsset;
        }
Esempio n. 3
0
        public override bool IsSame(BaseAsset other)
        {
            bool          same    = true;
            MaterialAsset otherMA = other as MaterialAsset;

            same &= this.AlbedoColor == otherMA.AlbedoColor;
            same &= this.AlphaValue == otherMA.AlphaValue;
            same &= this.RoughnessValue == otherMA.RoughnessValue;
            same &= this.MetallicValue == otherMA.MetallicValue;
            same &= this.Tile == otherMA.Tile;
            same &= this.Shift == otherMA.Shift;
            same &= this.AlbedoMapAsset == otherMA.AlbedoMapAsset;
            same &= this.AlbedoMapAsset == otherMA.AlbedoMapAsset;
            same &= this.NormalMapAsset == otherMA.NormalMapAsset;
            same &= this.RoughnessMapAsset == otherMA.RoughnessMapAsset;
            same &= this.MetallicMapAsset == otherMA.MetallicMapAsset;
            same &= this.OcclusionMapAsset == otherMA.OcclusionMapAsset;
            return(base.IsSame(other) && same);
        }
Esempio n. 4
0
 public virtual void CopyValues(BaseAsset source)
 {
     this.Name = source.Name;
     this.Type = source.Type;
 }
Esempio n. 5
0
 public BaseAsset(BaseAsset source)
 {
     CopyValues(source);
 }