public Voxel ToVoxel() { var voxel = new Voxel(); voxel.coord = coord; voxel.textureIds = GetTextureIds(); voxel.transparent = transparent; if (mainGravity.HasValue) { voxel.up = DirUtils.GetIdentifier(mainGravity.Value); } return(voxel); }
public Voxel ToVoxel() { var voxel = new Voxel(); voxel.coord = coord; voxel.textureIds = GetTextureIds(); voxel.transparent = transparent; voxel.isWater = type == TerrianBlockType.Water; if (mainGravity.HasValue) { voxel.up = DirUtils.GetIdentifier(mainGravity.Value); } return(voxel); }