public override int GetHashCode() { unchecked { int hashCode = (Fresnel != null ? Fresnel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Visibility != null ? Visibility.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NormalDistribution != null ? NormalDistribution.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(Color.A ^ Color.R ^ Color.G ^ Color.B ^ Fresnel.GetHashCode() ^ Roughness.GetHashCode()); }