Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }