public override int GetHashCode()
        {
            var hashCode = RampFunction?.GetHashCode() ?? 0;

            hashCode = (hashCode * 397) ^ (IsEnergyConservative.GetHashCode());
            return(hashCode);
        }
 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);
     }
 }