*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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user