- Timestamp:
- 12/23/08 17:39:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3226 r3232 115 115 float4 ao = tex2Dlod(ssaoTex, float4(IN.texCoord, 0, 0)); 116 116 117 #if 0 // use half size 118 117 119 // the following has to be done for half resolution ssao: 118 120 // get the minimum convergence by exactly sampling the 4 surrounding … … 124 126 125 127 // get position exactly between old texel centers 126 /*float2 center;128 float2 center; 127 129 center.x = (floor(IN.texCoord.x * w - .5f) + 1.0f) / w; 128 130 center.y = (floor(IN.texCoord.y * h - .5f) + 1.0f) / h; … … 137 139 138 140 const float minConvergence = min(m1, m2); 139 const float convergence = minConvergence;*/ 140 //const float convergence = 0; 141 const float convergence = minConvergence; 142 143 #else 144 145 // just take unfiltered convergence in current pixel 141 146 const float convergence = ao.y; 142 147 148 #endif 149 143 150 // filter reaches size 1 pixel when sample size reaches threshold 144 151 // afterwards we do not use the filter anymore
Note: See TracChangeset
for help on using the changeset viewer.