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