Ignore:
Timestamp:
10/03/08 18:42:33 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
Files:
2 edited

Legend:

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

    r3001 r3003  
    175175        float w = norm.w; 
    176176        // the current world position 
    177         const float4 centerPosition = tex2D(positions, IN.texCoord.xy); 
     177        const float4 centerPosition2 = tex2D(positions, IN.texCoord.xy); 
    178178 
    179179        /// reconstruct position from the eye space depth 
    180         /*float3 viewDir = normalize(IN.view); 
     180        float3 viewDir = normalize(IN.view); 
    181181        const float eyeDepth = tex2D(colors, IN.texCoord.xy).w; 
    182182         
     
    185185 
    186186        centerPosition.w = centerPosition2.w; 
    187 */ 
     187 
    188188        // the current color 
    189189        const float4 currentCol = tex2Dlod(colors, float4(IN.texCoord.xy, 0, 0)); 
     
    191191        const float currentDepth = centerPosition.w; 
    192192 
    193         GiStruct gi = globIllum(IN, colors, noiseTexture, samples, normal, centerPosition, w, eyePos, bl, br, tl, tr); 
     193        GiStruct gi = globIllum(IN, colors, noiseTexture, samples, normal, centerPosition2, w, eyePos, bl, br, tl, tr); 
    194194         
    195195 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/tonemap.cg

    r3002 r3003  
    3333    average *= 1.0f / 4.0f; 
    3434 
    35     return average; 
     35    return tex2D(colors, IN.texCoord);//average; 
    3636} 
    3737     
Note: See TracChangeset for help on using the changeset viewer.