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); }
public CVoxelFaceCopy(ComputeShader shader, CVoxelNeighborFormat cvoxelNeighborFormat, VGenConfig vGenConfig) { faceCopy = shader; this.vGenConfig = vGenConfig; this.cvoxelNeighborFormat = cvoxelNeighborFormat; initKernels(); initTemporaryBuffers(); setTemporaryBuffers(); }