source:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
@
3166
Revision 3166, 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 | ||
[3142] | 8 | //#define NUM_SAMPLES 8 |
[3162] | 9 | #define NUM_SAMPLES 24 |
[2886] | 10 | |
[2930] | 11 | // for quadratic falloff |
[3143] | 12 | //#define SAMPLE_INTENSITY 0.2f |
[3162] | 13 | //#define SAMPLE_INTENSITY 0.07f |
14 | #define SAMPLE_INTENSITY 0.01f | |
[2886] | 15 | |
[3154] | 16 | //#define SAMPLE_INTENSITY 0.075f |
[3155] | 17 | //#define SAMPLE_INTENSITY 0.2f |
[3151] | 18 | |
[3017] | 19 | #define SAMPLE_RADIUS 8e-1f |
[2886] | 20 | |
[3016] | 21 | //#define DISTANCE_SCALE 1e-1f |
[3108] | 22 | #define DISTANCE_SCALE 1e-2f |
[3103] | 23 | //#define DISTANCE_SCALE 0.2f |
[2886] | 24 | |
[3081] | 25 | //#define ILLUM_INTENSITY 8e-2f |
[3115] | 26 | #define ILLUM_INTENSITY 5e-3f |
[2886] | 27 | |
[3017] | 28 | #define VIEW_CORRECTION_SCALE 1.0f |
[2886] | 29 | |
[2966] | 30 | |
[3107] | 31 | //////// |
32 | //-- reprojection | |
33 | ||
[3120] | 34 | #define MIN_DEPTH_DIFF 5e-3f |
[3107] | 35 | #define PRECISION_SCALE 1e-1f |
36 | ||
37 | ||
[2966] | 38 | ///////// |
39 | //-- shadowing | |
40 | ||
41 | #define NUM_PCF_TABS 16 | |
42 | ||
43 | ||
[2974] | 44 | ////////// |
45 | //-- Tone mapping | |
[2966] | 46 | |
[2975] | 47 | #define MINLOGLUM (-10.0f) |
[2974] | 48 | #define MAXLOGLUM 10.0f |
49 | ||
[2975] | 50 | #define INV_LOGLUM_RANGE 0.05f |
51 | #define LOGLUM_RANGE 20.0f | |
52 | ||
[3010] | 53 | #define MAX_LOD_LEVEL 10 |
[3160] | 54 | /// burnout (really bright regions will be saturated to white) |
[3010] | 55 | #define WHITE_LUMINANCE 3e4f |
[2991] | 56 | |
[3079] | 57 | |
[3010] | 58 | /////////////////// |
[2991] | 59 | |
[3103] | 60 | #define NUM_DOWNSAMPLES 9 |
[3010] | 61 | |
[3134] | 62 | //#define NUM_SSAO_FILTERSAMPLES 25 |
[3165] | 63 | //#define NUM_SSAO_FILTERSAMPLES 50 |
[3161] | 64 | //#define NUM_SSAO_FILTERSAMPLES 80 |
[3166] | 65 | #define NUM_SSAO_FILTERSAMPLES 80 |
[3010] | 66 | |
[3083] | 67 | |
[3160] | 68 | #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f |
[3083] | 69 | |
[3159] | 70 | |
[2886] | 71 | #endif // __SHADERENV_H |
Note: See TracBrowser
for help on using the repository browser.