]> git.mxchange.org Git - simgear.git/commitdiff
Put airport lights in RenderBin to enable glow
authorFrederic Bouvier <fredfgfs01@free.fr>
Tue, 24 Jan 2012 22:13:15 +0000 (23:13 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 4 Mar 2012 19:21:37 +0000 (20:21 +0100)
simgear/scene/tgdb/pt_lights.cxx

index 59003fcb36279df4195b39df69c464d76c3959a8..a1c539399ff8bc32fcfd53446a99aa7e9a31d56f 100644 (file)
@@ -178,7 +178,7 @@ Effect* getLightEffect(float size, const Vec3& attenuation,
         return eitr->second.get();
     // Basic stuff; no sprite or attenuation support
     Pass *basicPass = new Pass;
-    basicPass->setRenderBinDetails(POINT_LIGHTS_BIN, "DepthSortedBin");
+    basicPass->setRenderBinDetails(POINT_LIGHTS_BIN, "RenderBin");
     basicPass->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
     StateAttributeFactory *attrFact = StateAttributeFactory::instance();
     basicPass->setAttributeAndModes(attrFact->getStandardBlendFunc());
@@ -336,7 +336,7 @@ SGLightFactory::getLights(const SGLightBin& lights, unsigned inc, float alphaOff
     if (!simpleLightSS.valid()) {
       StateAttributeFactory *attrFact = StateAttributeFactory::instance();
       simpleLightSS = new StateSet;
-      simpleLightSS->setRenderBinDetails(POINT_LIGHTS_BIN, "DepthSortedBin");
+      simpleLightSS->setRenderBinDetails(POINT_LIGHTS_BIN, "RenderBin");
       simpleLightSS->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
       simpleLightSS->setAttributeAndModes(attrFact->getStandardBlendFunc());
       simpleLightSS->setAttributeAndModes(attrFact->getStandardAlphaFunc());
@@ -452,7 +452,7 @@ SGLightFactory::getVasi(const SGVec3f& up, const SGDirectionalLightBin& lights,
     return 0;
 
   osg::StateSet* stateSet = drawable->getOrCreateStateSet();
-  stateSet->setRenderBinDetails(POINT_LIGHTS_BIN, "DepthSortedBin");
+  stateSet->setRenderBinDetails(POINT_LIGHTS_BIN, "RenderBin");
   stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
 
   osg::BlendFunc* blendFunc = new osg::BlendFunc;