X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=bvh.h;h=ddc81ca7c1ad5793d45d72ca579aeccab7e85657;hb=a6880a555be0e8bed7aae08c95b95eeb62ade0b4;hp=b054741facdcfbac6d80ee5f6d36dfaac24a5e09;hpb=8f83be5a31728cd6bf95020e729367cc44308763;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/bvh.h b/bvh.h index b054741..ddc81ca 100644 --- a/bvh.h +++ b/bvh.h @@ -26,6 +26,13 @@ typedef struct bh_node bh_node; typedef struct bh_tree bh_tree; typedef struct bh_system bh_system; +typedef struct ray_hit ray_hit; +struct ray_hit{ + float dist; + u32 *tri; + v3f pos, normal; +}; + struct bh_tree { u32 node_count;