public ChunkObject(ChunkStreamer streamer)
 {
     GI            = new VoxelGI(this);
     ChunkTree     = new Octree <Chunk>(0, 16384);
     coords        = new List <int[]>();
     this.Streamer = streamer;
 }
Exemple #2
0
        internal Chunk(ChunkStreamer streamer, int id)
        {
            data = new byte[ChunkConstants.Side * ChunkConstants.Side * ChunkConstants.Side];
            vis  = new byte[ChunkConstants.Side * ChunkConstants.Side * ChunkConstants.Side];

            //face_quads = new HashSet<Vector3>[6];
            //for (int i = 0; i < face_quads.Length; i++) face_quads[i] = new HashSet<Vector3>();

            this.streamer = streamer;
            this.id       = id;
            empty         = true;
        }