From 21e6c87fef255076f591ab7269b3b3e9bf6c3e5a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 12 Nov 2004 15:39:18 +0000 Subject: [PATCH] Rotated scene to face the viewer --- examples/osgdepthshadow/osgdepthshadow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/osgdepthshadow/osgdepthshadow.cpp b/examples/osgdepthshadow/osgdepthshadow.cpp index 08f5b492b..cc2ff79c4 100644 --- a/examples/osgdepthshadow/osgdepthshadow.cpp +++ b/examples/osgdepthshadow/osgdepthshadow.cpp @@ -372,7 +372,9 @@ int main(int argc, char** argv) return 1; } - ref_ptr scene = new Group; + ref_ptr scene = new MatrixTransform; + scene->setMatrix(osg::Matrix::rotate(osg::DegreesToRadians(125.0),1.0,0.0,0.0)); + ref_ptr shadowed_scene = _create_scene(); if (!shadowed_scene.valid()) return 1; scene->addChild(shadowed_scene.get());