Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-04-11 15:54:58 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-11 18:18:14 +0300
commit6cd13a221f374091203dd38ea0f9fc649a2b9a7f (patch)
tree753a01b72024edbbdfbaf8539e38b6f071877d4c /intern/cycles/bvh/bvh.h
parente5a2790ecbdc748cc5d67af60ad5251eee0a7b6f (diff)
Cycles: Rename tri_woop to tri_storage
It's no longer a pre-computed data and just a storage of triangle coordinates which are faster to access to.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r--intern/cycles/bvh/bvh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h
index 272a3fa1514..4b9f1bae801 100644
--- a/intern/cycles/bvh/bvh.h
+++ b/intern/cycles/bvh/bvh.h
@@ -52,8 +52,8 @@ struct PackedBVH {
array<int4> leaf_nodes;
/* object index to BVH node index mapping for instances */
array<int> object_node;
- /* precomputed triangle intersection data, one triangle is 4x float4 */
- array<float4> tri_woop;
+ /* Aligned triangle storage for fatser lookup in the kernel. */
+ array<float4> tri_storage;
/* primitive type - triangle or strand */
array<int> prim_type;
/* visibility visibilitys for primitives */
@@ -97,7 +97,7 @@ protected:
/* triangles and strands*/
void pack_primitives();
- void pack_triangle(int idx, float4 woop[3]);
+ void pack_triangle(int idx, float4 storage[3]);
/* merge instance BVH's */
void pack_instances(size_t nodes_size, size_t leaf_nodes_size);