Changeset 2866 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 08/25/08 20:20:42 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/antialiasing.cg
r2865 r2866 31 31 32 32 nd -= e_barrier.x; 33 nd = step(0 , nd);33 nd = step(0.0f, nd); 34 34 35 35 float ne = saturate(dot(nd, e_weights.x)); … … 64 64 65 65 dd = abs(2.0f * dc - dd) - e_barrier.y; 66 dd = step(dd, 0); 66 dd = step(dd, 0.0f); 67 67 68 float de = saturate(dot(dd, e_weights.y)); 68 69 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r2865 r2866 104 104 (SAMPLE_INTENSITY * DISTANCE_SCALE) / (DISTANCE_SCALE + length_to_sample * length_to_sample); 105 105 106 // if surface normal perpenticular to view dir, the samples count less => compensate for this 106 // if surface normal perpenticular to view dir, some samples probably count less 107 // => compensate for this 107 108 float view_correction = 1.0f + VIEW_CORRECTION_SCALE * (1.0f - dot(currentViewDir, currentNormal)); 108 109 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2865 r2866 75 75 pixel pix; 76 76 77 // save color in first render target 77 78 pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 79 // save world position in second rt 78 80 pix.pos = IN.worldPos * maxDepth; 81 // save normal in third rt 79 82 pix.norm.xyz = IN.normal * 0.5f + 0.5f; 80 83 81 84 // hack: squeeze some information about ambient into the texture 82 85 pix.norm.w = ambient.x; 83 // hack: store projection coordinate for scaling ssao86 // store projection coordinates with positions (used for ssao) 84 87 pix.pos.w = IN.projPos.w; 85 88
Note: See TracChangeset
for help on using the changeset viewer.