Ignore:
Timestamp:
09/16/08 12:38:36 (16 years ago)
Author:
mattausch
Message:

strted to implement animation

File:
1 edited

Legend:

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

    r2949 r2951  
    3434 
    3535        float4 mypos: TEXCOORD3; 
    36         //float DEPTH; 
    3736}; 
    3837 
     
    4544}; 
    4645 
     46#pragma position_invariant vtx 
    4747 
    4848vtxout vtx(vtxin IN,  
     
    5959 
    6060   // transform the vertex position into eye space 
    61    OUT.position = mul(ModelViewProj, OUT.worldPos); 
     61   //OUT.position = mul(ModelViewProj, OUT.worldPos); 
     62   OUT.position = mul(glstate.matrix.mvp, IN.position); 
    6263 
    6364   OUT.normal = IN.normal; 
    6465 
    6566   OUT.mypos = OUT.position; 
     67 
    6668   return OUT; 
    6769} 
     
    7981        pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 
    8082         
    81         // save world position in second rt 
     83        // save world position in second render target 
    8284        pix.pos = IN.worldPos * maxDepth; 
    8385        // save normal in third rt 
    84         //pix.norm.xyz = IN.normal * 0.5f + 0.5f; 
    8586        pix.norm.xyz = IN.normal; 
    8687 
Note: See TracChangeset for help on using the changeset viewer.