public override bool Equals(Object o) { if (o == null || !(o is FaceMaterial)) { return(false); } FaceMaterial other = (FaceMaterial)o; return( DiffuseAlphaMode == other.DiffuseAlphaMode && AlphaMaskCutoff == other.AlphaMaskCutoff && SpecularLightExponent == other.SpecularLightExponent && EnvironmentIntensity == other.EnvironmentIntensity && NormalMapID == other.NormalMapID && NormalOffsetX == other.NormalOffsetX && NormalOffsetY == other.NormalOffsetY && NormalRepeatX == other.NormalRepeatX && NormalRepeatY == other.NormalRepeatY && NormalRotation == other.NormalRotation && SpecularMapID == other.SpecularMapID && SpecularOffsetX == other.SpecularOffsetX && SpecularOffsetY == other.SpecularOffsetY && SpecularRepeatX == other.SpecularRepeatX && SpecularRepeatY == other.SpecularRepeatY && SpecularRotation == other.SpecularRotation && SpecularLightColorR == other.SpecularLightColorR && SpecularLightColorG == other.SpecularLightColorG && SpecularLightColorB == other.SpecularLightColorB ); }
public FaceMaterial(FaceMaterial other) { if (other == null) { return; } DiffuseAlphaMode = other.DiffuseAlphaMode; AlphaMaskCutoff = other.AlphaMaskCutoff; SpecularLightExponent = other.SpecularLightExponent; EnvironmentIntensity = other.EnvironmentIntensity; NormalOffsetX = other.NormalOffsetX; NormalOffsetY = other.NormalOffsetY; NormalRepeatX = other.NormalRepeatX; NormalRepeatY = other.NormalRepeatY; NormalRotation = other.NormalRotation; SpecularOffsetX = other.SpecularOffsetX; SpecularOffsetY = other.SpecularOffsetY; SpecularRepeatX = other.SpecularRepeatX; SpecularRepeatY = other.SpecularRepeatY; SpecularRotation = other.SpecularRotation; SpecularLightColorR = other.SpecularLightColorR; SpecularLightColorG = other.SpecularLightColorG; SpecularLightColorB = other.SpecularLightColorB; NormalMapID = other.NormalMapID; SpecularMapID = other.SpecularMapID; }