diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-17 20:46:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-25 00:50:49 +0300 |
commit | 8cfac731a5b4aad1bf958ce5ee3b3980dacd2a7d (patch) | |
tree | 54d25f2ad6a2483cc540c6502682c7fed50ea122 /intern/cycles/bvh/bvh.h | |
parent | fe4905288dc4b8ddf193abdf3b287c47feedb597 (diff) |
Cycles: Implement refit_nodes for QBVH
Title says it all, quite straightforward implementation.
Would only mention that there's a bit of code duplication around packing node
into pack.nodes. Trying to de-duplicate it ends up in quite hairy code (like
functions with loads of arguments some of which could be NULL in certain
circumstances etc..). Leaving solving this duplication for later.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r-- | intern/cycles/bvh/bvh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h index 5fcaaaa988c..58faaccee7d 100644 --- a/intern/cycles/bvh/bvh.h +++ b/intern/cycles/bvh/bvh.h @@ -154,6 +154,7 @@ protected: /* refit */ void refit_nodes(); + void refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility); }; CCL_NAMESPACE_END |