public override int GetHashCode() { unchecked { var hashCode = ScatteringWidth.GetHashCode(); hashCode = (hashCode * 397) ^ Translucency.GetHashCode(); hashCode = (hashCode * 397) ^ TranslucencyMap.GetHashCode(); hashCode = (hashCode * 397) ^ ProfileFunction.GetHashCode(); hashCode = (hashCode * 397) ^ KernelFunction.GetHashCode(); return(hashCode); } }
protected bool Equals(MaterialSubsurfaceScatteringFeature other) { return(ScatteringWidth.Equals(other.ScatteringWidth) && Translucency.Equals(other.Translucency) && TranslucencyMap.Equals(other.TranslucencyMap) && ProfileFunction.Equals(other.ProfileFunction) && KernelFunction.Equals(other.KernelFunction)); }