Build @pmndrs/bvh trees and @pmndrs/raytracer's scene copy over engine-free geometry and wrap them as a
TraceProvider. The mesh trees come from H-PLOC on the GPU when the device has subgroups, from tinybvh
otherwise (options.builder). Hit.instance is the instance's position in scene.instances; Hit.material the
hit triangle's entry of its mesh's triangleMaterials when it has one, else the instance's material.
Build @pmndrs/bvh trees and @pmndrs/raytracer's scene copy over engine-free geometry and wrap them as a TraceProvider. The mesh trees come from H-PLOC on the GPU when the device has
subgroups, from tinybvh otherwise (options.builder).Hit.instanceis the instance's position inscene.instances;Hit.materialthe hit triangle's entry of its mesh'striangleMaterialswhen it has one, else the instance'smaterial.