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

Revision 3089, 935 bytes checked in by mattausch, 16 years ago (diff)

working better but stil not fully there

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
11// for quadratic falloff
12//#define SAMPLE_INTENSITY 0.1f
13#define SAMPLE_INTENSITY 0.07f
14//#define SAMPLE_INTENSITY 0.03f
15
16#define SAMPLE_RADIUS 8e-1f
17
18//#define DISTANCE_SCALE 1e-1f
19#define DISTANCE_SCALE 5e-2f
20
21//#define ILLUM_INTENSITY 8e-2f
22#define ILLUM_INTENSITY 2e-2f
23
24#define VIEW_CORRECTION_SCALE 1.0f
25
26
27/////////
28//-- shadowing
29
30#define NUM_PCF_TABS 16
31
32
33//////////
34//-- Tone mapping
35
36#define MINLOGLUM (-10.0f)
37#define MAXLOGLUM 10.0f
38
39#define INV_LOGLUM_RANGE 0.05f
40#define LOGLUM_RANGE 20.0f
41
42#define MAX_LOD_LEVEL 10
43
44#define MIN_DEPTH_DIFF 1e-2f
45#define PRECISION_SCALE 1e-2f
46
47// burnout
48#define WHITE_LUMINANCE 3e4f
49
50
51///////////////////
52
53#define NUM_DOWNSAMPLES 16
54
55#define NUM_SSAO_FILTERSAMPLES 100
56
57
58
59#endif // __SHADERENV_H
Note: See TracBrowser for help on using the repository browser.