X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=bvh.h;h=ddc81ca7c1ad5793d45d72ca579aeccab7e85657;hb=f99902f513b0ad606437bf32de47405dd4ea5f98;hp=b054741facdcfbac6d80ee5f6d36dfaac24a5e09;hpb=01e2535f8daaab0e3d46dcc61a08a9268babd47c;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;