clray

view src/common.h @ 55:df239a52a091

extensive render stats for the CPU raytracer
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Sep 2010 03:00:21 +0100
parents 154f03802aea
children
line source
1 #ifndef COMMON_H_
2 #define COMMON_H_
4 /* error threshold */
5 #define EPSILON 1e-5
7 /* minimum trace energy threshold */
8 #define MIN_ENERGY 0.001
10 /* primary ray magnitude */
11 #define RAY_MAG 500.0
13 /* maximum faces per leaf node of the kd-tree */
14 #define MAX_NODE_FACES 32
16 /* maximum kdtree depth */
17 #define MAX_TREE_DEPTH 64
19 /* width in pixels of the image-ified kdtree node */
20 #define KDIMG_NODE_WIDTH 16
22 /* maximum kdtree image height */
23 #define KDIMG_MAX_HEIGHT 4096
25 #endif /* COMMON_H_ */