A shader uniform object corresponding to the BVH shader struct defined in shaderStructs. The
object contains four textures containing information about the BVH and geometry so it can be
queried in a shader using the bvh intersection functions defined in shaderFunctions. This object
is intended to be used as a shader uniform and read in the shader as a BVH struct.
On this page
Methods
updateFrom( bvh: MeshBVH ): voidUpdates the object and associated textures with data from the provided BVH.
dispose(): voidDispose of the associated textures.