naive color driven sub-sampling
slightly optimized KdTree::nearest_intersection
fixed bug in Box::intersect
fixed stripes on spheres in spheres_ao.py (was caused by AO distance)
new KdTree property: max_depth
minor changes in realtime.py
#ifndef COMMON_H
#define COMMON_H
#include <stdio.h>
#include <stdarg.h>
#include <float.h>
#define Eps 1e-6
#define Inf FLT_MAX
inline void infomsg(const char *format, ...)
{
#ifndef PYRIT_QUITE
va_list ap;
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
#endif
}
#endif