Ignore:
Timestamp:
09/23/08 15:41:14 (16 years ago)
Author:
mattausch
Message:

started reinhard tonemapping implementation but slow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r2964 r2966  
    11#ifndef __SHADERENV_H 
    22#define __SHADERENV_H 
     3 
     4 
     5//////////// 
     6//-- ssao + gi parameters 
    37 
    48#define NUM_SAMPLES 8 
    59//#define NUM_SAMPLES 16 
    610 
    7  
    811// for linear falloff 
    912//#define SAMPLE_INTENSITY 500.0f 
    10 //#define SAMPLE_INTENSITY 40.0f 
    1113 
    1214// for quadratic falloff 
    1315#define SAMPLE_INTENSITY 0.32f 
    1416//#define SAMPLE_INTENSITY 0.85f 
    15 //#define SAMPLE_INTENSITY 5.0f 
    1617 
    1718//#define AREA_SIZE 15e-1f 
    18 //#define AREA_SIZE 25e-1f 
    1919#define AREA_SIZE 8e-1f 
    2020 
     
    2424//#define DISTANCE_SCALE 1e-4f 
    2525#define DISTANCE_SCALE 1e-6f 
    26 //#define DISTANCE_SCALE 1e-8f 
    2726 
    2827#define ILLUM_INTENSITY 5e-1f; 
     
    3231#define GI_MIPMAP_LEVEL 2 
    3332 
     33 
     34///////// 
     35//-- tone mapping 
     36 
     37//#define MIDDLE_GRAY 0.36f 
     38#define MIDDLE_GRAY 0.18f 
     39 
     40 
     41///////// 
     42//-- shadowing 
     43 
     44#define NUM_PCF_TABS 16 
     45 
     46 
     47 
    3448#endif // __SHADERENV_H 
Note: See TracChangeset for help on using the changeset viewer.