source:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
@
3204
Revision 3204, 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 |
[3204] | 10 | #define NUM_SAMPLES 24 |
11 | //#define NUM_SAMPLES 96 | |
[2886] | 12 | |
[3203] | 13 | #define SAMPLE_INTENSITY 0.3f |
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 | |
[3195] | 29 | #define SSAO_FILTER_WIDTH 12.0f |
30 | #define SSAO_CONVERGENCE_WEIGHT 300.0f | |
[2966] | 31 | |
[3167] | 32 | |
[3107] | 33 | //////// |
34 | //-- reprojection | |
35 | ||
[3120] | 36 | #define MIN_DEPTH_DIFF 5e-3f |
[3107] | 37 | #define PRECISION_SCALE 1e-1f |
38 | ||
39 | ||
[2966] | 40 | ///////// |
41 | //-- shadowing | |
42 | ||
43 | #define NUM_PCF_TABS 16 | |
44 | ||
45 | ||
[2974] | 46 | ////////// |
47 | //-- Tone mapping | |
[2966] | 48 | |
[2975] | 49 | #define MINLOGLUM (-10.0f) |
[2974] | 50 | #define MAXLOGLUM 10.0f |
51 | ||
[2975] | 52 | #define INV_LOGLUM_RANGE 0.05f |
53 | #define LOGLUM_RANGE 20.0f | |
54 | ||
[3010] | 55 | #define MAX_LOD_LEVEL 10 |
[3160] | 56 | /// burnout (really bright regions will be saturated to white) |
[3010] | 57 | #define WHITE_LUMINANCE 3e4f |
[2991] | 58 | |
[3079] | 59 | |
[3010] | 60 | /////////////////// |
[2991] | 61 | |
[3103] | 62 | #define NUM_DOWNSAMPLES 9 |
[3010] | 63 | |
[3160] | 64 | #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f |
[3083] | 65 | |
[3159] | 66 | |
[2886] | 67 | #endif // __SHADERENV_H |
Note: See TracBrowser
for help on using the repository browser.