Line | |
---|
1 | #ifndef __SHADERENV_H
|
---|
2 | #define __SHADERENV_H
|
---|
3 |
|
---|
4 |
|
---|
5 | ////////////
|
---|
6 | //-- ssao + gi parameters
|
---|
7 |
|
---|
8 | //#define NUM_SAMPLES 8
|
---|
9 | #define NUM_SAMPLES 16
|
---|
10 | //#define NUM_SAMPLES 24
|
---|
11 |
|
---|
12 | //#define SAMPLE_INTENSITY 0.5f
|
---|
13 | #define SAMPLE_INTENSITY 1.0f
|
---|
14 |
|
---|
15 | #define SAMPLE_RADIUS 8e-1f
|
---|
16 | //#define SAMPLE_RADIUS 15e-1f
|
---|
17 |
|
---|
18 | //#define DISTANCE_SCALE 1e-1f
|
---|
19 | #define DISTANCE_SCALE 1e-2f
|
---|
20 |
|
---|
21 | //#define ILLUM_INTENSITY 8e-2f
|
---|
22 | #define ILLUM_INTENSITY 5e-3f
|
---|
23 |
|
---|
24 | #define VIEW_CORRECTION_SCALE 1.0f
|
---|
25 |
|
---|
26 | //#define NUM_SSAO_FILTERSAMPLES 80
|
---|
27 | #define NUM_SSAO_FILTER_SAMPLES 16
|
---|
28 | #define SSAO_FILTER_WIDTH 12.0f
|
---|
29 | #define SSAO_CONVERGENCE_WEIGHT 300.0f
|
---|
30 |
|
---|
31 |
|
---|
32 | ////////
|
---|
33 | //-- reprojection
|
---|
34 |
|
---|
35 | #define MIN_DEPTH_DIFF 5e-3f
|
---|
36 | #define PRECISION_SCALE 1e-1f
|
---|
37 |
|
---|
38 |
|
---|
39 | /////////
|
---|
40 | //-- shadowing
|
---|
41 |
|
---|
42 | #define NUM_PCF_TABS 16
|
---|
43 |
|
---|
44 |
|
---|
45 | //////////
|
---|
46 | //-- Tone mapping
|
---|
47 |
|
---|
48 | #define MINLOGLUM (-10.0f)
|
---|
49 | #define MAXLOGLUM 10.0f
|
---|
50 |
|
---|
51 | #define INV_LOGLUM_RANGE 0.05f
|
---|
52 | #define LOGLUM_RANGE 20.0f
|
---|
53 |
|
---|
54 | #define MAX_LOD_LEVEL 10
|
---|
55 | /// burnout (really bright regions will be saturated to white)
|
---|
56 | #define WHITE_LUMINANCE 3e4f
|
---|
57 |
|
---|
58 |
|
---|
59 | ///////////////////
|
---|
60 |
|
---|
61 | #define NUM_DOWNSAMPLES 9
|
---|
62 |
|
---|
63 | #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f
|
---|
64 |
|
---|
65 |
|
---|
66 | #endif // __SHADERENV_H |
---|
Note: See
TracBrowser
for help on using the repository browser.