@pmndrs/bvh
    Preparing search index...

    Class SdfGenerator

    Fills a grid with the signed distance to a scene's triangles on the GPU: one closest-point walk and, for a signed field, three all-hit ray walks per voxel (docs/tracing/sdf.mdx). One generator serves any number of scenes of its formats. Group 0 is the scene (as TraceBatchKernel's), group 1 the field's parameters and output.

    Index
    output: SdfOutput
    positionLayout: PositionLayout
    rayMasks: boolean
    triangleLeaves: GpuLayoutTriangleLeaves
    • Frees the parameter uniforms. The pipeline needs no freeing.

      Returns void