Ignore:
Timestamp:
09/01/08 18:33:14 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2891 r2892  
    5656        for (int i = 0; i < NUM_SAMPLES; ++ i)  
    5757        { 
    58                 //const float2 offset = samples[i]; 
    59                 const float3 offset = float3(samples[i], 0); 
     58                const float2 offset = samples[i]; 
     59                //const float3 offset = float3(samples[i], 0); 
    6060 
    6161                //////////////////// 
     
    6363 
    6464                //const float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy * 2.0f - 1.0f; 
    65                 //float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy; 
    66                 float3 mynoise = float3(tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy,0); 
     65                float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy; 
     66                //float3 mynoise = float3(tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy,0); 
    6767 
    68                 const float2 offsetTransformed = reflect(offset, mynoise); 
     68                const float2 offsetTransformed = myreflect(offset, mynoise); 
    6969 
    7070                // weight with projected coordinate to reach similar kernel size for near and far 
Note: See TracChangeset for help on using the changeset viewer.