コード例 #1
0
        public override int GetHashCode()
        {
            var hashCode = RampFunction?.GetHashCode() ?? 0;

            hashCode = (hashCode * 397) ^ (IsEnergyConservative.GetHashCode());
            return(hashCode);
        }
コード例 #2
0
 public bool Equals(MaterialDiffuseCelShadingModelFeature other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(IsEnergyConservative.Equals(other.IsEnergyConservative));
 }
コード例 #3
0
 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);
     }
 }