- Timestamp:
- 09/17/08 19:35:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShadowMapping.cpp
r2953 r2954 266 266 if (sinGamma < 1e-6f) return 1e6f; 267 267 268 return (nearPlane + sqrt(nearPlane * (nearPlane + d * sinGamma))) / sinGamma; 268 const float scale = 2.0f; 269 return scale * (nearPlane + sqrt(nearPlane * (nearPlane + d * sinGamma))) / sinGamma; 269 270 } 270 271
Note: See TracChangeset
for help on using the changeset viewer.