Ignore:
Timestamp:
07/14/08 18:17:50 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2834 r2836  
    7878  pix.pos = IN.worldPos * maxDepth; 
    7979  pix.norm.xyz = IN.normal * 0.5f + 0.5f; 
     80 
    8081  // hack: squeeze some information about ambient into the texture 
    8182  pix.norm.w = ambient.x; 
    8283  // hack: store projection coordinate for scaling ssao 
    8384  pix.pos.w = IN.projPos.w; 
     85 
     86  if (pix.col.w < 0.9f) 
     87          discard; 
     88 
    8489  pix.col.w = IN.mypos.z / IN.mypos.w; 
    8590 
Note: See TracChangeset for help on using the changeset viewer.