source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h @ 3212

Revision 3212, 1.1 KB checked in by mattausch, 16 years ago (diff)

made ssao parameters more flexible
started to implement lense flare

Line 
1#ifndef __SHADERENV_H
2#define __SHADERENV_H
3
4
5////////////
6//-- ssao + gi parameters
7
8//#define NUM_SAMPLES 8
9#define NUM_SAMPLES 16
10//#define NUM_SAMPLES 24
11//#define NUM_SAMPLES 96
12
13#define DISTANCE_SCALE 1e-2f
14
15//#define ILLUM_INTENSITY 8e-2f
16#define ILLUM_INTENSITY 5e-3f
17/// scale factor that takes angle of sample normal into account
18#define VIEW_CORRECTION_SCALE 1.0f
19
20#define NUM_SSAO_FILTER_SAMPLES 16
21
22#define SSAO_FILTER_WIDTH 12.0f
23//#define SSAO_FILTER_WIDTH 6.0f
24
25#define SSAO_CONVERGENCE_THRESHOLD 700.0f
26
27
28////////
29//-- reprojection
30
31#define MIN_DEPTH_DIFF 5e-3f
32#define PRECISION_SCALE 1e-1f
33
34
35/////////
36//-- shadowing
37
38#define NUM_PCF_TABS 16
39
40
41//////////
42//-- Tone mapping
43
44#define MINLOGLUM (-10.0f)
45#define MAXLOGLUM 10.0f
46
47#define INV_LOGLUM_RANGE 0.05f
48#define LOGLUM_RANGE 20.0f
49
50#define MAX_LOD_LEVEL 10
51/// burnout (really bright regions will be saturated to white)
52#define WHITE_LUMINANCE 3e4f
53
54
55///////////////////
56
57#define NUM_DOWNSAMPLES 9
58
59#define DYNAMIC_OBJECTS_THRESHOLD 1e-8f
60
61
62#endif // __SHADERENV_H
Note: See TracBrowser for help on using the repository browser.