Ignore:
Timestamp:
02/20/09 18:47:25 (15 years ago)
Author:
mattausch
Message:

now changing to precomputed sampling version

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

Legend:

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

    r3322 r3323  
    169169                s[i].y = r * sin(a); 
    170170 
    171                 total1 += x[0]; 
     171                /*total1 += x[0]; 
    172172                total2 += x[1]; 
    173173                totalSamples ++; 
     
    179179 
    180180                        cout << "here3 " << n1 << " " << n2 << endl; 
    181                 } 
     181                }*/ 
    182182        } 
    183183} 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3322 r3323  
    99//#define NUM_SAMPLES 16 
    1010//#define NUM_SAMPLES 24 
    11 #define NUM_SAMPLES 8 
     11#define NUM_SAMPLES 24 
    1212 
    1313//#define MIN_SAMPLES 48 
    14 #define MIN_SAMPLES 8 
     14#define MIN_SAMPLES 24 
    1515 
    1616#define DISTANCE_SCALE 1e-2f 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg

    r3322 r3323  
    192192        { 
    193193                // the filtered ssao value 
    194                 //OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 
     194                OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 
    195195        } 
    196196 
     
    232232        { 
    233233                // the filtered ssao value 
    234                 //ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 
     234                ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 
    235235        } 
    236236 
     
    241241        if (depth < DEPTH_THRESHOLD) 
    242242        { 
    243                 OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 
    244                 //OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 
     243                //OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 
     244                OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 
    245245        } 
    246246        else 
Note: See TracChangeset for help on using the changeset viewer.