From d2b7340fb5c074bbb673c5e6eda3acd19e883179 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Jan 2003 12:25:04 +0000 Subject: [PATCH] Changed the decal=true setting to decal=false to make sure that textured models come out lit ok. The makes the assumption that colour values on the objects and realistic, if they arn't then decal texture can produce better results.. --- src/osgPlugins/lib3ds/ReaderWriter3DS.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp b/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp index 95bb02e67..6180dd34d 100644 --- a/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp +++ b/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp @@ -687,7 +687,8 @@ osg::StateSet* ReaderWriter3DS::createStateSet(Lib3dsMaterial *mat) stateset->setAttribute(material); - bool decal = true; + bool decal = false; + //bool decal = true; bool textureTransparancy=false; osg::Texture2D* texture1_map = createTexture(&(mat->texture1_map),"texture1_map",textureTransparancy); if (texture1_map)