Exemplo n.º 1
0
 protected bool Equals(MaterialShaderPluginPermutationKey other)
 {
     return(ShaderSourceComparer.Default.Equals(AlbedoMaterial, other.AlbedoMaterial) &&
            SkinningPosition.Equals(other.SkinningPosition) &&
            SkinningNormal.Equals(other.SkinningNormal) &&
            SkinningTangent.Equals(other.SkinningTangent) &&
            NeedAlphaBlending.Equals(other.NeedAlphaBlending));
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (AlbedoMaterial != null ? ShaderSourceComparer.Default.GetHashCode(AlbedoMaterial) : 0);
         hashCode = (hashCode * 397) ^ SkinningPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ SkinningNormal.GetHashCode();
         hashCode = (hashCode * 397) ^ SkinningTangent.GetHashCode();
         hashCode = (hashCode * 397) ^ NeedAlphaBlending.GetHashCode();
         return(hashCode);
     }
 }