Ignore:
Timestamp:
09/16/08 16:03:01 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2951 r2952  
    4848vtxout vtx(vtxin IN,  
    4949                   const uniform float4x4 ModelViewProj, 
    50                    uniform float4x4 ModelMatrix) 
     50                   uniform float4x4 ModelView) 
    5151{ 
    52    vtxout OUT; 
    53    
    54    // transform the vertex position into eye space 
    55    OUT.color = IN.color; 
     52        vtxout OUT; 
    5653 
    57    OUT.texCoord = IN.texCoord; 
    58    OUT.worldPos = mul(ModelMatrix, IN.position); 
     54        // transform the vertex position into eye space 
     55        OUT.color = IN.color; 
    5956 
    60    // transform the vertex position into eye space 
    61    //OUT.position = mul(ModelViewProj, OUT.worldPos); 
    62    OUT.position = mul(glstate.matrix.mvp, IN.position); 
     57        OUT.texCoord = IN.texCoord; 
    6358 
    64    OUT.normal = IN.normal; 
     59        // transform the vertex position into eye space 
     60        OUT.position = mul(glstate.matrix.mvp, IN.position); 
     61        //OUT.worldPos = mul(glstate.matrix.inverse.projection, OUT.position); 
     62        OUT.worldPos = mul(ModelView, IN.position); 
    6563 
    66    OUT.mypos = OUT.position; 
     64        OUT.normal = IN.normal; 
    6765 
    68    return OUT; 
     66        OUT.mypos = OUT.position; 
     67 
     68        return OUT; 
    6969} 
    7070 
Note: See TracChangeset for help on using the changeset viewer.