public override int GetHashCode() { var hashCode = RampFunction?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (IsEnergyConservative.GetHashCode()); return(hashCode); }
public bool Equals(MaterialDiffuseCelShadingModelFeature other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(IsEnergyConservative.Equals(other.IsEnergyConservative)); }
public override int GetHashCode() { unchecked { var hashCode = IsEnergyConservative.GetHashCode(); hashCode = (hashCode * 397) ^ (int)ShadingModel; hashCode = (hashCode * 397) ^ HairDirectionFunction.GetHashCode(); hashCode = (hashCode * 397) ^ HairShadowingFunction.GetHashCode(); hashCode = (hashCode * 397) ^ LightAttenuationFunction.GetHashCode(); hashCode = (hashCode * 397) ^ AlphaThreshold.GetHashCode(); return(hashCode); } }