@pmndrs/bvh
    Preparing search index...

    Function triangleGeometryWgsl

    • The ray and triangle geometry of the trace module alone, with no bindings: BvhRay, BvhTriangleHit, BvhTrianglePoint, and

      fn bvhIntersectRayTriangle(ray: BvhRay, a: vec3f, b: vec3f, c: vec3f) -> BvhTriangleHit
      fn bvhClosestPointToTriangle(point: vec3f, a: vec3f, b: vec3f, c: vec3f) -> BvhTrianglePoint
      

      plus the ray setup and watertight test they use (bvhMakeRaySetup, bvhIntersectWatertight). It is the text the trace module includes, so a kernel uses one or the other, never both.

      Returns string