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

RevLine 
[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
[2886]20
[3081]21//#define ILLUM_INTENSITY 8e-2f
22#define ILLUM_INTENSITY 2e-2f
[2886]23
[3017]24#define VIEW_CORRECTION_SCALE 1.0f
[2886]25
[2966]26
27/////////
28//-- shadowing
29
30#define NUM_PCF_TABS 16
31
32
[2974]33//////////
34//-- Tone mapping
[2966]35
[2975]36#define MINLOGLUM (-10.0f)
[2974]37#define MAXLOGLUM 10.0f
38
[2975]39#define INV_LOGLUM_RANGE 0.05f
40#define LOGLUM_RANGE 20.0f
41
[3010]42#define MAX_LOD_LEVEL 10
[2978]43
[3088]44#define MIN_DEPTH_DIFF 1e-2f
[3089]45#define PRECISION_SCALE 1e-2f
[3084]46
[3010]47// burnout
48#define WHITE_LUMINANCE 3e4f
[2991]49
[3079]50
[3010]51///////////////////
[2991]52
[3017]53#define NUM_DOWNSAMPLES 16
[3010]54
[3079]55#define NUM_SSAO_FILTERSAMPLES 100
[3010]56
[3083]57
58
[2886]59#endif // __SHADERENV_H
Note: See TracBrowser for help on using the repository browser.