Ignore:
Timestamp:
07/10/08 23:10:18 (16 years ago)
Author:
mattausch
Message:

debug version: noise multipler does not work so well (but would with temporal smoothing)

File:
1 edited

Legend:

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

    r2830 r2832  
    5050           uniform sampler2D noiseTexture, 
    5151           uniform float2 samples[NUM_SAMPLES], 
    52            uniform float3 currentNormal 
    53            ) 
     52           uniform float3 currentNormal, 
     53           uniform float noiseMultiplier) 
    5454{ 
    5555  // the current world position 
     
    7272     
    7373    //sample noisetex; r stores costheta, g stores sintheta 
    74     float2 noise = tex2D(noiseTexture, IN.texCoord.xy * 7.0f).xy * 2.0f - 1.0f; 
     74    float2 noise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy * 2.0f - 1.0f; 
    7575         
    7676    // rotation 
     
    144144               uniform sampler2D normals, 
    145145               uniform sampler2D noiseTexture, 
    146                uniform float2 samples[NUM_SAMPLES]) 
     146               uniform float2 samples[NUM_SAMPLES], 
     147               uniform float noiseMultiplier) 
    147148{ 
    148149  pixel OUT; 
     
    155156 
    156157  float4 col = shade(IN, colors, positions, normal, amb); 
    157   float ao = ssao(IN, positions, noiseTexture, samples, normal); 
     158  float ao = ssao(IN, positions, noiseTexture, samples, normal, noiseMultiplier); 
    158159   
    159160   //OUT.color = ao; 
Note: See TracChangeset for help on using the changeset viewer.