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

Revision 3081, 898 bytes checked in by mattausch, 16 years ago (diff)

trying to get ssao to work with dynamic objects

RevLine 
[2886]1#ifndef __SHADERENV_H
2#define __SHADERENV_H
3
[2966]4
5////////////
6//-- ssao + gi parameters
7
[3081]8//#define NUM_SAMPLES 8
9#define NUM_SAMPLES 16
[2886]10
[2930]11// for quadratic falloff
[3079]12//#define SAMPLE_INTENSITY 0.1f
[3081]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
[3080]44#define MIN_DEPTH_DIFF 1e-5f
[3010]45// burnout
46#define WHITE_LUMINANCE 3e4f
[2991]47
[3079]48
[3010]49///////////////////
[2991]50
[3017]51#define NUM_DOWNSAMPLES 16
[3010]52
[3079]53#define NUM_SSAO_FILTERSAMPLES 100
[3010]54
[2886]55#endif // __SHADERENV_H
Note: See TracBrowser for help on using the repository browser.