diff options
author | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-08-12 06:00:44 +0400 |
---|---|---|
committer | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-08-12 06:00:44 +0400 |
commit | c101d58d42da8b8be77fd9faa58932e781a5a2fd (patch) | |
tree | d73278126a37f844d681fde92e24a8a24d4c889e /source/blender/render/intern/include/rayobject.h | |
parent | eff93b099d5d347b692aa065b93f287baf1055c8 (diff) |
*Instance support is only enabled if target mesh uses more than 4 faces
if theres very few faces its not worth it to create a separated tree for beinng reused.
should speedup some particle renders.
This "fixes" a bug relationed with a arithmetic precision on instances and raytrace of very close objects
which usually happens on rendering (almost) overlapping alpha-enabled leafs/feathers
Diffstat (limited to 'source/blender/render/intern/include/rayobject.h')
-rw-r--r-- | source/blender/render/intern/include/rayobject.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/render/intern/include/rayobject.h b/source/blender/render/intern/include/rayobject.h index 2c63c8ceae9..b058f260052 100644 --- a/source/blender/render/intern/include/rayobject.h +++ b/source/blender/render/intern/include/rayobject.h @@ -78,9 +78,11 @@ extern "C" { */ /* defines where coordinates of rayface primitives are stored */ -//#define RE_RAYFACE_COORDS_LOCAL +#define RE_RAYFACE_COORDS_LOCAL + +//(ATM this won't work good with all types of instances) //#define RE_RAYFACE_COORDS_POINTER -#define RE_RAYFACE_COORDS_VLAKREN +//#define RE_RAYFACE_COORDS_VLAKREN typedef struct RayFace { |