Ignore:
Timestamp:
08/25/08 20:20:42 (16 years ago)
Author:
mattausch
Message:

bug: downsampling of positions does not work

File:
1 edited

Legend:

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

    r2865 r2866  
    7575        pixel pix; 
    7676 
     77        // save color in first render target 
    7778        pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 
     79        // save world position in second rt 
    7880        pix.pos = IN.worldPos * maxDepth; 
     81        // save normal in third rt 
    7982        pix.norm.xyz = IN.normal * 0.5f + 0.5f; 
    8083 
    8184        // hack: squeeze some information about ambient into the texture 
    8285        pix.norm.w = ambient.x; 
    83         // hack: store projection coordinate for scaling ssao 
     86        // store projection coordinates with positions (used for ssao) 
    8487        pix.pos.w = IN.projPos.w; 
    8588 
Note: See TracChangeset for help on using the changeset viewer.