コード例 #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);
 }
コード例 #2
0
ファイル: CVoxelFaceCopy.cs プロジェクト: melsov/ComputeVoxel
        public CVoxelFaceCopy(ComputeShader shader, CVoxelNeighborFormat cvoxelNeighborFormat, VGenConfig vGenConfig)
        {
            faceCopy                  = shader;
            this.vGenConfig           = vGenConfig;
            this.cvoxelNeighborFormat = cvoxelNeighborFormat;

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