Load the kernels
Use the wasm bundle when you want the selection math without the rest of the renderer attached.
import { Param, loadWasmKernels } from '@voxelkloud/wasm-core'
const kernels = await loadWasmKernels(wasmBytes)
kernels.params[Param.CamX] = camera.x
kernels.params[Param.CamY] = camera.y
kernels.extractPlanes(false, false)
const mask = kernels.selectChildren(0xff, false)