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