]> git.mxchange.org Git - simgear.git/commitdiff
Add bloom buffer to effects
authorFrederic Bouvier <fredfgfs01@free.fr>
Sun, 15 Jan 2012 11:15:06 +0000 (12:15 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 4 Mar 2012 19:21:31 +0000 (20:21 +0100)
simgear/scene/material/Effect.hxx
simgear/scene/material/TextureBuilder.cxx

index 34ab62a0b630b39348d77ecc93900138ce4eea48..b74b4bf10237461c8d38580c0f23690eb4b20937 100644 (file)
@@ -88,7 +88,8 @@ public:
         DIFFUSE_BUFFER,
         SPECULAR_BUFFER,
         EMISSION_BUFFER,
-        LIGHTING_BUFFER
+        LIGHTING_BUFFER,
+        BLOOM_BUFFER
     };
 
     // Define what needs to be generated for this effect
index ef1d6c1d4840d8fff1d835ab3f0b123ccd4a2685..6048b7658c38a8a2a0d3653103c5d169a8e0083a 100644 (file)
@@ -917,6 +917,7 @@ namespace
     TextureBuilder::Registrar installSpecularBuffer("specular-buffer", new GBufferBuilder(Effect::SPECULAR_BUFFER));
     TextureBuilder::Registrar installEmissionBuffer("emission-buffer", new GBufferBuilder(Effect::EMISSION_BUFFER));
     TextureBuilder::Registrar installLightingBuffer("lighting-buffer", new GBufferBuilder(Effect::LIGHTING_BUFFER));
+    TextureBuilder::Registrar installBloomBuffer("bloom-buffer", new GBufferBuilder(Effect::BLOOM_BUFFER));
 }
 
 }