Revision 3331,
1.3 KB
checked in by mattausch, 16 years ago
(diff) |
performance testing
|
Line | |
---|
1 | #ifndef __SHADERENV_H
|
---|
2 | #define __SHADERENV_H
|
---|
3 |
|
---|
4 |
|
---|
5 | ////////////
|
---|
6 | //-- ssao + gi parameters
|
---|
7 | #define NUM_PRECOMPUTED_SAMPLES 4096
|
---|
8 |
|
---|
9 | #define NUM_SAMPLES 8
|
---|
10 | //#define NUM_SAMPLES 16
|
---|
11 | //#define NUM_SAMPLES 24
|
---|
12 | //#define NUM_SAMPLES 24
|
---|
13 |
|
---|
14 | //#define MIN_SAMPLES 48
|
---|
15 | #define MIN_SAMPLES 8
|
---|
16 |
|
---|
17 | #define DISTANCE_SCALE 1e-2f
|
---|
18 |
|
---|
19 | //#define ILLUM_INTENSITY 8e-2f
|
---|
20 | #define ILLUM_INTENSITY 5e-3f
|
---|
21 | /// scale factor that takes angle of sample normal into account
|
---|
22 | #define VIEW_CORRECTION_SCALE 1.0f
|
---|
23 |
|
---|
24 | #define SSAO_CONVERGENCE_THRESHOLD 700.0f
|
---|
25 | //#define SSAO_CONVERGENCE_THRESHOLD 1500.0f
|
---|
26 |
|
---|
27 |
|
---|
28 | ////////
|
---|
29 | //-- reprojection
|
---|
30 |
|
---|
31 | //#define MIN_DEPTH_DIFF 5e-3f
|
---|
32 | #define MIN_DEPTH_DIFF 1e-3f
|
---|
33 | #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f
|
---|
34 |
|
---|
35 |
|
---|
36 | /////////
|
---|
37 | //-- shadowing
|
---|
38 |
|
---|
39 | #define NUM_PCF_TABS 16
|
---|
40 |
|
---|
41 |
|
---|
42 | //////////
|
---|
43 | //-- Tone mapping
|
---|
44 |
|
---|
45 | #define MINLOGLUM (-10.0f)
|
---|
46 | #define MAXLOGLUM 10.0f
|
---|
47 |
|
---|
48 | #define INV_LOGLUM_RANGE 0.05f
|
---|
49 | #define LOGLUM_RANGE 20.0f
|
---|
50 |
|
---|
51 | #define MAX_LOD_LEVEL 10
|
---|
52 | /// burnout (really bright regions will be saturated to white)
|
---|
53 | #define WHITE_LUMINANCE 3e4f
|
---|
54 |
|
---|
55 | #define TONE_MAPPING_EXPONENTIAL_FACTOR 1e-1f
|
---|
56 |
|
---|
57 |
|
---|
58 | ///////////////////
|
---|
59 |
|
---|
60 | #define NUM_DOWNSAMPLES 9
|
---|
61 |
|
---|
62 | #define NUM_DOF_TABS 16
|
---|
63 |
|
---|
64 | #define USE_GTX
|
---|
65 |
|
---|
66 | #define SSAO_FILTER_RADIUS 5
|
---|
67 |
|
---|
68 | #define DEPTH_THRESHOLD 1e10f
|
---|
69 |
|
---|
70 |
|
---|
71 | #endif // __SHADERENV_H |
---|
Note: See
TracBrowser
for help on using the repository browser.