Revision 3155,
1.1 KB
checked in by mattausch, 16 years ago
(diff) |
improved valid sample detection not workign yet
|
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 8
|
---|
10 |
|
---|
11 | // for quadratic falloff
|
---|
12 | //#define SAMPLE_INTENSITY 0.2f
|
---|
13 | #define SAMPLE_INTENSITY 0.07f
|
---|
14 |
|
---|
15 | //#define SAMPLE_INTENSITY 0.075f
|
---|
16 | //#define SAMPLE_INTENSITY 0.2f
|
---|
17 |
|
---|
18 | #define SAMPLE_RADIUS 8e-1f
|
---|
19 |
|
---|
20 | //#define DISTANCE_SCALE 1e-1f
|
---|
21 | #define DISTANCE_SCALE 1e-2f
|
---|
22 | //#define DISTANCE_SCALE 0.2f
|
---|
23 |
|
---|
24 | //#define ILLUM_INTENSITY 8e-2f
|
---|
25 | #define ILLUM_INTENSITY 5e-3f
|
---|
26 |
|
---|
27 | #define VIEW_CORRECTION_SCALE 1.0f
|
---|
28 |
|
---|
29 |
|
---|
30 | ////////
|
---|
31 | //-- reprojection
|
---|
32 |
|
---|
33 | #define MIN_DEPTH_DIFF 5e-3f
|
---|
34 | #define PRECISION_SCALE 1e-1f
|
---|
35 |
|
---|
36 |
|
---|
37 | /////////
|
---|
38 | //-- shadowing
|
---|
39 |
|
---|
40 | #define NUM_PCF_TABS 16
|
---|
41 |
|
---|
42 |
|
---|
43 | //////////
|
---|
44 | //-- Tone mapping
|
---|
45 |
|
---|
46 | #define MINLOGLUM (-10.0f)
|
---|
47 | #define MAXLOGLUM 10.0f
|
---|
48 |
|
---|
49 | #define INV_LOGLUM_RANGE 0.05f
|
---|
50 | #define LOGLUM_RANGE 20.0f
|
---|
51 |
|
---|
52 | #define MAX_LOD_LEVEL 10
|
---|
53 | // burnout (really bright regions will be saturated to white)
|
---|
54 | #define WHITE_LUMINANCE 3e4f
|
---|
55 |
|
---|
56 |
|
---|
57 | ///////////////////
|
---|
58 |
|
---|
59 | #define NUM_DOWNSAMPLES 9
|
---|
60 |
|
---|
61 | //#define NUM_SSAO_FILTERSAMPLES 25
|
---|
62 | #define NUM_SSAO_FILTERSAMPLES 16
|
---|
63 | //#define NUM_SSAO_FILTERSAMPLES 81
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 | #endif // __SHADERENV_H |
---|
Note: See
TracBrowser
for help on using the repository browser.