Changeset 2890 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 08/31/08 17:18:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2889 r2890 94 94 } 95 95 96 //return max(0.0f, 1.0f - total_ao);97 return saturate(dot(currentViewDir, currentNormal));96 return max(0.0f, 1.0f - total_ao); 97 //return saturate(dot(currentViewDir, currentNormal)); 98 98 } 99 99 … … 125 125 /// the current view direction 126 126 //float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 127 float3 viewDir = IN.view;127 float3 viewDir = normalize(IN.view); 128 128 129 129 // the current world position
Note: See TracChangeset
for help on using the changeset viewer.