From cbf8687e3dd814b0370494d02fa86a32e0282235 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 15 Jan 2012 12:15:06 +0100 Subject: [PATCH] Add bloom buffer to effects --- simgear/scene/material/Effect.hxx | 3 ++- simgear/scene/material/TextureBuilder.cxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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)); } } -- 2.39.5