Added a ShadowTechnique::computeOrthogonalVector(const osg::Vec3& direction) const method for helping compute an appropriate
up vector to setViewMatrixAsLookAt(..) codes in osgShadow. This will addresses previous issues that occured when look vectors co-incided with the hard coded up vectors.
This commit is contained in:
@@ -71,6 +71,7 @@ class OSGSHADOW_EXPORT ShadowTechnique : public osg::Object
|
||||
ShadowTechnique* _shadowTechnique;
|
||||
};
|
||||
|
||||
osg::Vec3 computeOrthogonalVector(const osg::Vec3& direction) const;
|
||||
|
||||
virtual ~ShadowTechnique();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user