From 66b6fa000140e76559b77461a499187ac0232171 Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 3 Dec 2006 16:50:00 +0000 Subject: [PATCH] Modified Files: renderer.cxx: set TexEnv for the 2d stuff. --- src/Main/renderer.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index af067d7f9..8b89324fc 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -121,6 +121,8 @@ public: stateSet->setMode(GL_BLEND, osg::StateAttribute::ON); stateSet->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::OFF); + stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE)); + stateSet->setMode(GL_FOG, osg::StateAttribute::OFF); stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); } @@ -174,6 +176,8 @@ public: stateSet->setMode(GL_BLEND, osg::StateAttribute::ON); stateSet->setMode(GL_FOG, osg::StateAttribute::OFF); stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); + + stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE)); } virtual void drawImplementation(osg::State& state) const {