Changeset 3209 for GTP/trunk/App


Ignore:
Timestamp:
12/03/08 13:01:25 (16 years ago)
Author:
mattausch
Message:

restricted ssao to 0.1 so tone mapping artifacts for completely black surfaces can be avoided

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
3 edited

Legend:

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

    r3208 r3209  
    99//#define NUM_SAMPLES 16 
    1010//#define NUM_SAMPLES 24 
    11 #define NUM_SAMPLES 96 
     11#define NUM_SAMPLES 48 
    1212 
    13 #define SAMPLE_INTENSITY 0.2f 
     13#define SAMPLE_INTENSITY 0.15f 
    1414//#define SAMPLE_INTENSITY 2.0f 
    1515 
  • TabularUnified GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg

    r3206 r3209  
    218218 
    219219        if (col.w < 1e10f) 
    220                 OUT.illum_col.xyz = col.xyz * ao.x; 
     220                OUT.illum_col.xyz = col.xyz * max(1e-1f, 1.0f - ao.x); 
    221221        else 
    222222                OUT.illum_col.xyz = col.xyz; 
  • TabularUnified GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3208 r3209  
    348348        total_ao /= numSamples; 
    349349 
    350         return float3(max(0.0f, 1.0f - total_ao), validSamples, numSamples); 
     350        //return float3(max(0.0f, 1.0f - total_ao), validSamples, numSamples); 
     351        return float3(total_ao, validSamples, numSamples); 
    351352} 
    352353 
Note: See TracChangeset for help on using the changeset viewer.