Esempio n. 1
0
 private void Awake()
 {
     cvoxelMapData        = new CVoxelMapData(perlinGen, vGenConfig);
     cvoxelMapFormat      = new CVoxelMapFormat(meshGen, hilbertShader, cvoxelMapData, vGenConfig);
     cvoxelNeighborFormat = new CVoxelNeighborFormat(neighborFormat, vGenConfig);
     cvoxelFaceCopy       = new CVoxelFaceCopy(neighborFormat, cvoxelNeighborFormat, vGenConfig);
 }
Esempio n. 2
0
        public CVoxelFaceCopy(ComputeShader shader, CVoxelNeighborFormat cvoxelNeighborFormat, VGenConfig vGenConfig)
        {
            faceCopy                  = shader;
            this.vGenConfig           = vGenConfig;
            this.cvoxelNeighborFormat = cvoxelNeighborFormat;

            initKernels();
            initTemporaryBuffers();
            setTemporaryBuffers();
        }