clray

view src/common.h @ 54:6a30f27fa1e6

separated the OpenGL visualization and added a CPU raytracing mode
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 10 Sep 2010 16:47:00 +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_ */