- Timestamp:
- 11/25/08 18:58:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/antialiasing.cg
r3167 r3168 80 80 // weight: 0 = no antialiasing, 1 = full antialiasing 81 81 const float w = (1.0f - de * ne) * kernel.x; 82 83 82 // smoothed color: the offset is big where discontinuities are 84 83 // (a - c) * w + c = a * w + c * (1 - w) … … 96 95 //float4 col = float4(de.x, de.x, de.x, 0); 97 96 //float4 col = float4(w, w, w, 0); 98 //float4 col = float4(centerNormal * 0.5f + float3(0.5f), 0); 99 //col = step(.0f, col); 100 //float4 col = float4(centerNormal, 0); 101 97 102 98 // push through the current depth 103 99 col.w = centerDepth.x;
Note: See TracChangeset
for help on using the changeset viewer.