Пример #1
0
        public override int GetHashCode()
        {
            int hash = ColourMap.GetHashCode() ^ (renderBothFaces ? 1 : 0) ^ (switchFrontAndRearFaces ? 1 : 0);

            if (DiffuseTransmissionColour != null)
            {
                hash ^= DiffuseTransmissionColour.GetHashCode();
            }
            if (TransmissionColour != null)
            {
                hash ^= TransmissionColour.GetHashCode();
            }
            if (DiffuseReflectionColour != null)
            {
                hash ^= DiffuseReflectionColour.GetHashCode();
            }
            if (ReflectanceColour != null)
            {
                hash ^= ReflectanceColour.GetHashCode();
            }
            return(hash);
        }