Show
Ignore:
Timestamp:
04/27/15 21:31:13 (11 hours ago)
Author:
robert
Message:

Renamed LineSegment::intersect(BoundingSphere/Box?, double/float&, double/float&) methods to LineSegment::intersectAndComputeRations(..) to avoid confusion with the change in convention for
the old intersect(BoundingBox?&, float/double&, float/double&) method as it was inconsitent with the rest of the OSG including the intersect(BoundingSphere?) method in how the ratio for the
second intersection was measure from - original from the end point, but now made consistent with other places in the OSG so be based on ration from start to end of segment.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgShadow/ShadowSettings.cpp

    r13108 r13110  
    1313 
    1414#include <osgShadow/ShadowSettings> 
     15#include <float.h> 
    1516 
    1617using namespace osgShadow; 
     
    2526    _textureSize(2048,2048), 
    2627    _minimumShadowMapNearFarRatio(0.05), 
     28    _maximumShadowMapDistance(DBL_MAX), 
    2729    _shadowMapProjectionHint(PERSPECTIVE_SHADOW_MAP), 
    2830    _perspectiveShadowMapCutOffAngle(2.0), 
     
    4749    _textureSize(ss._textureSize), 
    4850    _minimumShadowMapNearFarRatio(ss._minimumShadowMapNearFarRatio), 
     51    _maximumShadowMapDistance(ss._maximumShadowMapDistance), 
    4952    _shadowMapProjectionHint(ss._shadowMapProjectionHint), 
    5053    _perspectiveShadowMapCutOffAngle(ss._perspectiveShadowMapCutOffAngle),