From 6f16193a7a307137a7532f66948a554255feec1d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 7 Dec 2002 21:20:40 +0000 Subject: [PATCH] Tweaks the light points blend function. --- src/osgSim/LightPointDrawable.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgSim/LightPointDrawable.cpp b/src/osgSim/LightPointDrawable.cpp index b4a69f572..c95bcb65b 100644 --- a/src/osgSim/LightPointDrawable.cpp +++ b/src/osgSim/LightPointDrawable.cpp @@ -28,6 +28,7 @@ LightPointDrawable::LightPointDrawable(): _blendOn = osgNew osg::BlendFunc; _blendOn->setFunction(osg::BlendFunc::SRC_ALPHA,osg::BlendFunc::ONE); + //_blendOn->setFunction(osg::BlendFunc::SRC_ALPHA,osg::BlendFunc::ONE_MINUS_SRC_ALPHA); _colorMaskOff = osgNew osg::ColorMask; _colorMaskOff->setMask(false,false,false,false); @@ -60,6 +61,7 @@ void LightPointDrawable::drawImplementation(osg::State& state) const state.applyAttribute(_blendOn.get()); state.applyAttribute(_depthOff.get()); + //state.applyMode(GL_DEPTH_TEST,false); int pointsize; SizedLightPointList::const_iterator sitr;