From f022f79436247d450dd51e171d50222581afee23 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 30 Nov 2006 12:04:36 +0000 Subject: [PATCH] Fixed shadow volume geometry handling of direcitonal lights --- src/osgShadow/OccluderGeometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgShadow/OccluderGeometry.cpp b/src/osgShadow/OccluderGeometry.cpp index a3b4a5cbe..6e49db652 100644 --- a/src/osgShadow/OccluderGeometry.cpp +++ b/src/osgShadow/OccluderGeometry.cpp @@ -755,7 +755,7 @@ void OccluderGeometry::comptueShadowVolumeGeometry(const osg::Vec4& lightpos, Sh if (lightpos.w()==0.0) { // directional light. - osg::Vec3 lightdirection( lightpos.x(), lightpos.y(), lightpos.z()); + osg::Vec3 lightdirection( -lightpos.x(), -lightpos.y(), -lightpos.z()); osg::notify(osg::NOTICE)<<"Directional light"<