コード例 #1
0
 public ChunkObject(ChunkStreamer streamer)
 {
     GI            = new VoxelGI(this);
     ChunkTree     = new Octree <Chunk>(0, 16384);
     coords        = new List <int[]>();
     this.Streamer = streamer;
 }
コード例 #2
0
ファイル: Chunk.cs プロジェクト: himanshugoel2797/KokoroVR
        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;
        }