public ChunkObject(ChunkStreamer streamer) { GI = new VoxelGI(this); ChunkTree = new Octree <Chunk>(0, 16384); coords = new List <int[]>(); this.Streamer = streamer; }
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; }