From 4dea029608c02235060766209d335402c7a164f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Jan 2007 13:16:47 +0000 Subject: [PATCH] Made two sided stencil the default --- examples/osgshadow/osgshadow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osgshadow/osgshadow.cpp b/examples/osgshadow/osgshadow.cpp index e0421c64f..de8eea94d 100644 --- a/examples/osgshadow/osgshadow.cpp +++ b/examples/osgshadow/osgshadow.cpp @@ -169,8 +169,9 @@ int main(int argc, char** argv) bool doShadow = true; while (arguments.read("--noShadow")) doShadow = false; - osgShadow::ShadowVolumeGeometry::DrawMode drawMode = osgShadow::ShadowVolumeGeometry::STENCIL_TWO_PASS; + osgShadow::ShadowVolumeGeometry::DrawMode drawMode = osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED; while (arguments.read("--two-sided")) drawMode = osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED; + while (arguments.read("--two-pass")) drawMode = osgShadow::ShadowVolumeGeometry::STENCIL_TWO_PASS; // set up the camera manipulators.