source:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
@
3103
Revision 3103, 995 bytes 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 | ||
[3089] | 8 | #define NUM_SAMPLES 8 |
9 | //#define NUM_SAMPLES 16 | |
[2886] | 10 | |
[2930] | 11 | // for quadratic falloff |
[3079] | 12 | //#define SAMPLE_INTENSITY 0.1f |
[3083] | 13 | #define SAMPLE_INTENSITY 0.07f |
14 | //#define SAMPLE_INTENSITY 0.03f | |
[2886] | 15 | |
[3017] | 16 | #define SAMPLE_RADIUS 8e-1f |
[2886] | 17 | |
[3016] | 18 | //#define DISTANCE_SCALE 1e-1f |
19 | #define DISTANCE_SCALE 5e-2f | |
[3103] | 20 | //#define DISTANCE_SCALE 0.2f |
[2886] | 21 | |
[3081] | 22 | //#define ILLUM_INTENSITY 8e-2f |
23 | #define ILLUM_INTENSITY 2e-2f | |
[2886] | 24 | |
[3017] | 25 | #define VIEW_CORRECTION_SCALE 1.0f |
[2886] | 26 | |
[2966] | 27 | |
28 | ///////// | |
29 | //-- shadowing | |
30 | ||
31 | #define NUM_PCF_TABS 16 | |
32 | ||
33 | ||
[2974] | 34 | ////////// |
35 | //-- Tone mapping | |
[2966] | 36 | |
[2975] | 37 | #define MINLOGLUM (-10.0f) |
[2974] | 38 | #define MAXLOGLUM 10.0f |
39 | ||
[2975] | 40 | #define INV_LOGLUM_RANGE 0.05f |
41 | #define LOGLUM_RANGE 20.0f | |
42 | ||
[3010] | 43 | #define MAX_LOD_LEVEL 10 |
[2978] | 44 | |
[3103] | 45 | //#define MIN_DEPTH_DIFF 1e-2f |
46 | #define MIN_DEPTH_DIFF 0.1f | |
[3092] | 47 | #define PRECISION_SCALE 1e-1f |
[3084] | 48 | |
[3010] | 49 | // burnout |
50 | #define WHITE_LUMINANCE 3e4f | |
[2991] | 51 | |
[3079] | 52 | |
[3010] | 53 | /////////////////// |
[2991] | 54 | |
[3103] | 55 | #define NUM_DOWNSAMPLES 9 |
[3010] | 56 | |
[3103] | 57 | #define NUM_SSAO_FILTERSAMPLES 28 |
[3010] | 58 | |
[3083] | 59 | |
60 | ||
[2886] | 61 | #endif // __SHADERENV_H |
Note: See TracBrowser
for help on using the repository browser.