Ignore:
Timestamp:
09/17/08 19:35:11 (16 years ago)
Author:
mattausch
Message:

implemented sun color

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShadowMapping.cpp

    r2953 r2954  
    266266        if (sinGamma < 1e-6f) return 1e6f; 
    267267         
    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; 
    269270} 
    270271 
Note: See TracChangeset for help on using the changeset viewer.