Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ShadowRenderer != null ? ShadowRenderer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)ShadowType;
         return(hashCode);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Texture.GetHashCode();
         hashCode = (hashCode * 397) ^ Renderer.GetHashCode();
         hashCode = (hashCode * 397) ^ CascadeCount;
         hashCode = (hashCode * 397) ^ LightMaxCount;
         return(hashCode);
     }
 }