*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
This commit is contained in:
2009-08-12 02:00:44 +00:00
parent eff93b099d
commit c101d58d42
3 changed files with 37 additions and 4 deletions

View File

@@ -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
{