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/globillum.cg

    r2891 r2892  
    1313        float3 view: COLOR0; 
    1414}; 
    15  
    1615 
    1716 
     
    6766        for (int i = 0; i < NUM_SAMPLES; i ++)  
    6867        { 
    69                 //float2 offset = samples[i]; 
    70                 float3 offset = float3(samples[i], 0); 
     68                float2 offset = samples[i]; 
     69                //float3 offset = float3(samples[i], 0); 
    7170 
    7271                //sample noisetex; r stores costheta, g stores sintheta 
    73                 //float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy; 
    74                 float3 mynoise = float3(tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy, 0); 
    75  
    76                 // rotation 
    77                 float2 offsetTransformed = reflect(offset, mynoise); 
     72                float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy; 
     73                //float3 mynoise = float3(tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy, 0); 
     74 
     75                // reflect sampling using the noise texture 
     76                float2 offsetTransformed = myreflect(offset, mynoise); 
    7877 
    7978                // weight with projected coordinate to reach similar kernel size for near and far 
Note: See TracChangeset for help on using the changeset viewer.