]> git.mxchange.org Git - simgear.git/commitdiff
Merge Specular and Emission buffers
authorFrederic Bouvier <fredfgfs01@free.fr>
Sun, 25 Mar 2012 12:12:46 +0000 (14:12 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 25 Mar 2012 12:14:14 +0000 (14:14 +0200)
simgear/scene/material/Effect.hxx
simgear/scene/material/TextureBuilder.cxx

index 69d2273dc3c179a2acd7bbca277edb2ac7befd30..6daa279f157e0eb86bb56a3ed7f65be1e14a97f8 100644 (file)
@@ -86,8 +86,7 @@ public:
         DEPTH_BUFFER,
         NORMAL_BUFFER,
         DIFFUSE_BUFFER,
-        SPECULAR_BUFFER,
-        EMISSION_BUFFER,
+        SPEC_EMIS_BUFFER,
         LIGHTING_BUFFER,
         MIDDLE_BLOOM_BUFFER,
         BLOOM_BUFFER,
index ac152921fd3fb9839c8444561ec6c74ff30ae3f2..8e90064ab626436252c97b3787f7c3caf653558b 100644 (file)
@@ -132,7 +132,7 @@ void TextureUnitBuilder::buildAttribute(Effect* effect, Pass* pass,
                                                 options);
     }
     catch (BuilderException& e) {
-        SG_LOG(SG_INPUT, SG_ALERT, e.getFormattedMessage() << ", "
+        SG_LOG(SG_INPUT, SG_DEBUG, e.getFormattedMessage() << ", "
             << "maybe the reader did not set the filename attribute, "
             << "using white for type '" << type << "' on '" << pass->getName() << "', in " << prop->getPath() );
         texture = StateAttributeFactory::instance()->getWhiteTexture();
@@ -857,8 +857,7 @@ namespace
     TextureBuilder::Registrar installDepthBuffer("depth-buffer", new GBufferBuilder(Effect::DEPTH_BUFFER));
     TextureBuilder::Registrar installNormalBuffer("normal-buffer", new GBufferBuilder(Effect::NORMAL_BUFFER));
     TextureBuilder::Registrar installDiffuseBuffer("diffuse-buffer", new GBufferBuilder(Effect::DIFFUSE_BUFFER));
-    TextureBuilder::Registrar installSpecularBuffer("specular-buffer", new GBufferBuilder(Effect::SPECULAR_BUFFER));
-    TextureBuilder::Registrar installEmissionBuffer("emission-buffer", new GBufferBuilder(Effect::EMISSION_BUFFER));
+    TextureBuilder::Registrar installSpecularBuffer("spec-emis-buffer", new GBufferBuilder(Effect::SPEC_EMIS_BUFFER));
     TextureBuilder::Registrar installLightingBuffer("lighting-buffer", new GBufferBuilder(Effect::LIGHTING_BUFFER));
     TextureBuilder::Registrar installMiddleBloomBuffer("middle-bloom-buffer", new GBufferBuilder(Effect::MIDDLE_BLOOM_BUFFER));
     TextureBuilder::Registrar installBloomBuffer("bloom-buffer", new GBufferBuilder(Effect::BLOOM_BUFFER));