From Wojciech Lewandowski, build fixes for handling Matrix::value_type == float

This commit is contained in:
Robert Osfield
2008-10-06 14:18:27 +00:00
parent df12c7bc68
commit 7e43decf4c
6 changed files with 18 additions and 18 deletions

View File

@@ -663,8 +663,8 @@ void StandardShadowMap::ViewData::aimShadowCastingCamera(
const osg::Vec3 &lightUpVector
/* by default = osg::Vec3( 0, 1 0 )*/ )
{
osg::Matrix & view = _camera->getViewMatrix();
osg::Matrix & projection = _camera->getProjectionMatrix();
osg::Matrixd & view = _camera->getViewMatrix();
osg::Matrixd & projection = _camera->getProjectionMatrix();
osg::Vec3 up = lightUpVector;
if( up.length2() <= 0 ) up.set( 0,1,0 );