public void Read(BinaryReader reader, bool withNormal, int maxUV) { _withNormal = withNormal; _maxUV = maxUV; Position.Read(reader); if (_withNormal) { Normal.Read(reader); } Diffuse = reader.ReadInt32(); UV.Read(reader); if (_maxUV > 0) { UV1.Read(reader); } if (_maxUV > 1) { UV2.Read(reader); } if (_maxUV > 2) { UV3.Read(reader); } }