Ejemplo n.º 1
0
 public bool Equals(TextureVoxel other)
 {
     return(Empty == other.Empty &&
            TextureMapIndex == other.TextureMapIndex &&
            DetailMapIndex == other.DetailMapIndex &&
            AlphaLevel == other.AlphaLevel);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Copy textured voxel to new instance
 /// </summary>
 /// <param name="textureVoxel"></param>
 /// <param name="facesToRender">Optional faces to render</param>
 public TextureVoxel(TextureVoxel textureVoxel)
 {
     _hasTexture      = textureVoxel._hasTexture;
     _textureMapIndex = textureVoxel._textureMapIndex;
     _detailMapIndex  = textureVoxel._detailMapIndex;
     _alphaLevel      = textureVoxel._alphaLevel;
 }