clray
annotate src/common.h @ 62:d9520da6b801
minor readme fix
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Dec 2015 10:31:58 +0200 |
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_ */ |