clray

annotate 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
rev   line source
John@48 1 #ifndef COMMON_H_
John@48 2 #define COMMON_H_
John@48 3
nuclear@54 4 /* error threshold */
nuclear@54 5 #define EPSILON 1e-5
nuclear@54 6
nuclear@54 7 /* minimum trace energy threshold */
nuclear@54 8 #define MIN_ENERGY 0.001
nuclear@54 9
John@48 10 /* primary ray magnitude */
John@48 11 #define RAY_MAG 500.0
John@48 12
John@48 13 /* maximum faces per leaf node of the kd-tree */
John@48 14 #define MAX_NODE_FACES 32
John@48 15
John@48 16 /* maximum kdtree depth */
John@48 17 #define MAX_TREE_DEPTH 64
John@48 18
John@48 19 /* width in pixels of the image-ified kdtree node */
John@48 20 #define KDIMG_NODE_WIDTH 16
John@48 21
John@48 22 /* maximum kdtree image height */
John@48 23 #define KDIMG_MAX_HEIGHT 4096
John@48 24
John@48 25 #endif /* COMMON_H_ */