1 #ifndef DEFINES
2 #define DEFINES
3
4 // Constants
5 #define Epsilon 1E-3f //1E-4f
6 #define Infinity FLT_MAX
7
8 // Universal 'undefined' value (as used in SchlickShader)
9 #define UNDEF -1.0
10
11 // Definition of QuadAreaLights
12 #define AREALIGHT
13 #define NUM_AREA_SAMPLES 1//000
14
15 // Maximal count of reflections
16 #define MAXREFLECTIONS 5
17
18 // Phong parameters
19 #define La Vec3f(1,1,1)
20 #define cs Vec3f(1,1,1)
21
22 // Photon mapping:
23 // Photons are discarded, if the sum of their partial energies is
24 // below that boundary:
25 #define MINIMAL_PHOTONENERGY 1.0f
26
27 // Randomizer: Fix value for parallel rendering, comment out elsewhile
28 //#define RANDOMSEED 1169234273
29
30 // Parallel options
31 // Set to NODES=count, NODE=number(in [0..n-1]) to draw each NODESth line only
32 //#define NODES 10
33 //#define NODE 9
34
35 // Activate red/blue stereo vision? Provide half the eye distance:
36 //#define STEREOVIEW 0.10f // Microtrace 3, 6
37 //#define STEREOVIEW 0.03f // Microtrace 7
38
39 #endif
syntax highlighted by Code2HTML, v. 0.9.1