rtgs.bvh

Module Contents

Classes

API

class rtgs.bvh.BVHNode
bound: rtgs.bounding_box.Bound = None
left: taichi.i32 = None
right: taichi.i32 = None
prim_left: taichi.i32 = None
prim_right: taichi.i32 = None
depth: taichi.i32 = None
init(bound=Bound(), left=-1, right=-1, prim_left=-1, prim_right=-1, depth=-1)
hit(ray)

Ray cast hit the BVH node.

Parameters:

ray (Ray) – a camera ray.

Returns:

hit information.

Return type:

ti.math.vec2