- Timestamp:
- 08/25/08 20:20:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.