source:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
@
3209
Revision 3209, 1.2 KB checked in by mattausch, 16 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[2886] | 1 | #ifndef __SHADERENV_H |
2 | #define __SHADERENV_H | |
3 | ||
[2966] | 4 | |
5 | //////////// | |
6 | //-- ssao + gi parameters | |
7 | ||
[3199] | 8 | //#define NUM_SAMPLES 8 |
[3203] | 9 | //#define NUM_SAMPLES 16 |
[3208] | 10 | //#define NUM_SAMPLES 24 |
[3209] | 11 | #define NUM_SAMPLES 48 |
[2886] | 12 | |
[3209] | 13 | #define SAMPLE_INTENSITY 0.15f |
[3203] | 14 | //#define SAMPLE_INTENSITY 2.0f |
[2886] | 15 | |
[3194] | 16 | #define SAMPLE_RADIUS 8e-1f |
[3195] | 17 | //#define SAMPLE_RADIUS 15e-1f |
[2886] | 18 | |
[3016] | 19 | //#define DISTANCE_SCALE 1e-1f |
[3108] | 20 | #define DISTANCE_SCALE 1e-2f |
[2886] | 21 | |
[3081] | 22 | //#define ILLUM_INTENSITY 8e-2f |
[3115] | 23 | #define ILLUM_INTENSITY 5e-3f |
[2886] | 24 | |
[3017] | 25 | #define VIEW_CORRECTION_SCALE 1.0f |
[2886] | 26 | |
[3167] | 27 | //#define NUM_SSAO_FILTERSAMPLES 80 |
28 | #define NUM_SSAO_FILTER_SAMPLES 16 | |
[3206] | 29 | |
[3195] | 30 | #define SSAO_FILTER_WIDTH 12.0f |
[3206] | 31 | //#define SSAO_FILTER_WIDTH 6.0f |
[2966] | 32 | |
[3206] | 33 | #define SSAO_CONVERGENCE_THRESHOLD 700.0f |
[3167] | 34 | |
[3206] | 35 | |
[3107] | 36 | //////// |
37 | //-- reprojection | |
38 | ||
[3120] | 39 | #define MIN_DEPTH_DIFF 5e-3f |
[3107] | 40 | #define PRECISION_SCALE 1e-1f |
41 | ||
42 | ||
[2966] | 43 | ///////// |
44 | //-- shadowing | |
45 | ||
46 | #define NUM_PCF_TABS 16 | |
47 | ||
48 | ||
[2974] | 49 | ////////// |
50 | //-- Tone mapping | |
[2966] | 51 | |
[2975] | 52 | #define MINLOGLUM (-10.0f) |
[2974] | 53 | #define MAXLOGLUM 10.0f |
54 | ||
[2975] | 55 | #define INV_LOGLUM_RANGE 0.05f |
56 | #define LOGLUM_RANGE 20.0f | |
57 | ||
[3010] | 58 | #define MAX_LOD_LEVEL 10 |
[3160] | 59 | /// burnout (really bright regions will be saturated to white) |
[3010] | 60 | #define WHITE_LUMINANCE 3e4f |
[2991] | 61 | |
[3079] | 62 | |
[3010] | 63 | /////////////////// |
[2991] | 64 | |
[3103] | 65 | #define NUM_DOWNSAMPLES 9 |
[3010] | 66 | |
[3160] | 67 | #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f |
[3083] | 68 | |
[3159] | 69 | |
[2886] | 70 | #endif // __SHADERENV_H |
Note: See TracBrowser
for help on using the repository browser.