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; }
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); }
public MaterialAsset(MaterialAsset source) { CopyValues(source); }