From ef1fcd8ad1d8fb4feed704286982e8b5be03b149 Mon Sep 17 00:00:00 2001 From: Andre Susano Pinto Date: Wed, 15 Jul 2009 17:38:00 +0000 Subject: *Added support to "BB hints" (which works like a BB version of LCTS - longest common transversing subtree) It creates a tree cut after knowing that a given point will pass on a BB. This tree cut is used to accelarate the rays casted from a given BB, eliminating unnecessary BB tests from root till the tree cut. --- source/blender/render/intern/include/rayobject.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/render/intern/include/rayobject.h') diff --git a/source/blender/render/intern/include/rayobject.h b/source/blender/render/intern/include/rayobject.h index 16ebc537ef9..6f8debead19 100644 --- a/source/blender/render/intern/include/rayobject.h +++ b/source/blender/render/intern/include/rayobject.h @@ -98,6 +98,7 @@ typedef void (*RE_rayobject_done_callback)(RayObject *); typedef void (*RE_rayobject_free_callback)(RayObject *); typedef void (*RE_rayobject_merge_bb_callback)(RayObject *, float *min, float *max); typedef float (*RE_rayobject_cost_callback)(RayObject *); +typedef void (*RE_rayobject_hint_bb_callback)(RayObject *, RayHint *, float *, float *); typedef struct RayObjectAPI { @@ -107,6 +108,7 @@ typedef struct RayObjectAPI RE_rayobject_free_callback free; RE_rayobject_merge_bb_callback bb; RE_rayobject_cost_callback cost; + RE_rayobject_hint_bb_callback hint_bb; } RayObjectAPI; -- cgit v1.2.3