Changeset 3298 for GTP


Ignore:
Timestamp:
02/11/09 12:54:01 (15 years ago)
Author:
mattausch
Message:

star filter working well, now trying to make it separable

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

Legend:

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

    r3297 r3298  
    88//#define NUM_SAMPLES 8 
    99//#define NUM_SAMPLES 16 
    10 #define NUM_SAMPLES 24 
    11 //#define NUM_SAMPLES 48 
     10//#define NUM_SAMPLES 24 
     11#define NUM_SAMPLES 48 
    1212 
    1313#define MIN_SAMPLES 8 
     
    6464#define NUM_DOF_TABS 16 
    6565 
    66 //#define USE_GTX 
     66#define USE_GTX 
    6767 
    6868#endif // __SHADERENV_H 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg

    r3297 r3298  
    216216 
    217217        // filter up to a certain convergance value and leave out background (sky) by checking depth 
    218         if ((convergence < SSAO_CONVERGENCE_THRESHOLD) && (col.w < 1e10f)) 
     218        if ((convergence < SSAO_CONVERGENCE_THRESHOLD) &&  
     219                (col.w < 1e10f)) 
    219220        { 
    220221                const float distanceScale = 1.0f; 
     
    223224                const float convergenceWeight = SSAO_CONVERGENCE_THRESHOLD / (ssaoFilterRadius - 1.0f); 
    224225                const float convergenceScale = convergenceWeight / (convergence + convergenceWeight); 
    225                 const float scale = 1;//ssaoFilterRadius * convergenceScale * distanceScale; 
     226                //const float scale = 1;//ssaoFilterRadius * convergenceScale * distanceScale; 
     227                const float scale = convergenceScale; 
    226228 
    227229                // the filtered ssao value 
Note: See TracChangeset for help on using the changeset viewer.