# MeshBVHUniformStruct

class in `three-mesh-bvh`

```js
import { MeshBVHUniformStruct } from 'three-mesh-bvh';
```

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.

## Methods

### .updateFrom

```js
.updateFrom( bvh: MeshBVH ): void
```

Updates the object and associated textures with data from the provided BVH.

- `bvh`, `MeshBVH`

### .dispose

```js
.dispose(  ): void
```

Dispose of the associated textures.
