Ignore:
Timestamp:
12/23/08 17:39:27 (16 years ago)
Author:
mattausch
Message:

started dof implementation (not working yet!)

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg

    r3226 r3232  
    115115        float4 ao =  tex2Dlod(ssaoTex, float4(IN.texCoord, 0, 0)); 
    116116 
     117#if 0 // use half size 
     118 
    117119        // the following has to be done for half resolution ssao: 
    118120        // get the minimum convergence by exactly sampling the 4 surrounding 
     
    124126 
    125127        // get position exactly between old texel centers 
    126         /*float2 center; 
     128        float2 center; 
    127129        center.x = (floor(IN.texCoord.x * w - .5f) + 1.0f) / w; 
    128130        center.y = (floor(IN.texCoord.y * h - .5f) + 1.0f) / h; 
     
    137139 
    138140        const float minConvergence = min(m1, m2); 
    139         const float convergence = minConvergence;*/ 
    140         //const float convergence = 0; 
     141        const float convergence = minConvergence; 
     142 
     143#else 
     144         
     145        // just take unfiltered convergence in current pixel 
    141146        const float convergence = ao.y; 
    142147 
     148#endif 
     149         
    143150        // filter reaches size 1 pixel when sample size reaches threshold  
    144151        // afterwards we do not use the filter anymore 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/common.h

    r3230 r3232  
    4747 
    4848 
    49  
    50  
    5149inline float2 myrotate(float2 pt, float angle) 
    5250{ 
     
    6058} 
    6159 
    62  
    63 #define USE_GTX 
Note: See TracChangeset for help on using the changeset viewer.