Ignore:
Timestamp:
11/03/08 09:33:59 (16 years ago)
Author:
mattausch
Message:

working on rigid objects

File:
1 edited

Legend:

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

    r3089 r3091  
    137137                                                 uniform float3 oldbr, 
    138138                                                 uniform float3 oldtl, 
    139                                                  uniform float3 oldtr 
     139                                                 uniform float3 oldtr, 
     140                                                 const uniform float4x4 inverseModelTrafo, 
     141                                                 float id 
    140142                                                 ) 
    141143{ 
     
    144146        ///////////////// 
    145147        //-- compute reprojection for temporal smoothing 
     148 
     149        float4x4 trafo; 
     150 
     151        // dynamic object 
     152        if (id > 20) 
     153                trafo = oldModelViewProj; 
     154        else 
     155                trafo = inverseModelTrafo * oldModelViewProj; 
    146156 
    147157        // reproject into old frame and calculate projected depth 
Note: See TracChangeset for help on using the changeset viewer.