Ignore:
Timestamp:
09/04/08 12:55:36 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2901 r2902  
    5959        for (int i = 0; i < NUM_SAMPLES; ++ i)  
    6060        { 
    61                 const float3 offset = samples[i] * AREA_SIZE; 
     61                const float3 offset = samples[i]; 
    6262 
    6363                //////////////////// 
    6464                // add random noise: r stores costheta, g stores sintheta 
    6565 
    66                 float3 mynoise = (float3)tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier); 
    67                 const float3 offsetTransformed = reflect(offset, mynoise); 
    68                 //const float3 offsetTransformed = offset; 
     66                float3 mynoise = (float3)tex2D(noiseTexture, IN.texCoord.xy);// * noiseMultiplier); 
     67                //const float3 offsetTransformed = myreflect(offset, mynoise) * AREA_SIZE; 
     68                const float3 offsetTransformed = offset * AREA_SIZE; 
    6969 
    7070                // compute position 
Note: See TracChangeset for help on using the changeset viewer.