Ignore:
Timestamp:
11/11/08 19:14:04 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3118 r3119  
    463463        //-- load some dynamic stuff 
    464464 
    465         LoadModel("hbuddha.dem", dynamicObjects); 
     465        LoadModel("fisch.dem", dynamicObjects); 
     466        //LoadModel("hbuddha.dem", dynamicObjects); 
    466467        buddha = dynamicObjects.back(); 
    467468         
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3117 r3119  
    102102        // retrieve the sample from the last frame 
    103103        const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 
    104  
     104        // the eye linear depth from the previous frame 
    105105        const float oldEyeSpaceDepth = oldPixel.w; 
    106106         
     
    110110        const float projectedEyeSpaceDepth = invlen * length(translatedPos); 
    111111 
    112         float depthDif = (abs(eyeSpaceDepth - sampleEyeSpaceDepth) > 5.0f) ? 0 :  
    113                 abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 
     112        float depthDif = (abs(eyeSpaceDepth - sampleEyeSpaceDepth) > 3.0f) ?  
     113                0 : abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 
    114114 
    115115        return depthDif; 
     
    207207                                                                                                ); 
    208208                        //overallDepth += sampleDif; 
    209  
    210209                        if (sampleDif >= MIN_DEPTH_DIFF) ++ notValid; 
    211210                } 
Note: See TracChangeset for help on using the changeset viewer.