Changeset 3091
- Timestamp:
- 11/03/08 09:33:59 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3089 r3091 137 137 uniform float3 oldbr, 138 138 uniform float3 oldtl, 139 uniform float3 oldtr 139 uniform float3 oldtr, 140 const uniform float4x4 inverseModelTrafo, 141 float id 140 142 ) 141 143 { … … 144 146 ///////////////// 145 147 //-- 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; 146 156 147 157 // reproject into old frame and calculate projected depth -
GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt
r3081 r3091 76 76 to compare the depth of the current pixel, but the depth of the 77 77 samples taken for ao 78 79 80 idea for incorporation of dynamic objects: 81 82 store object id with render target 83 for each object we know the trafo 84 when doing the back projection => 85 as usual: 86 transform current pixel back to world space 87 find pixel from last frame using the inverse model view trafo 88 89 now apply the transformation from the current frame on the pixel => 90 do the equality comparison 91
Note: See TracChangeset
for help on using the changeset viewer.