From: Frederic Bouvier Date: Sun, 15 Jan 2012 11:15:06 +0000 (+0100) Subject: Add bloom buffer to effects X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cbf8687e3dd814b0370494d02fa86a32e0282235;p=simgear.git Add bloom buffer to effects --- diff --git a/simgear/scene/material/Effect.hxx b/simgear/scene/material/Effect.hxx index 34ab62a0..b74b4bf1 100644 --- a/simgear/scene/material/Effect.hxx +++ b/simgear/scene/material/Effect.hxx @@ -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 diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index ef1d6c1d..6048b765 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -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)); } }