From: Frederic Bouvier Date: Sat, 31 Mar 2012 20:40:39 +0000 (+0200) Subject: Shadow map now available in effects X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4de05629eef4bc10b12e03ca90ab1e4d98414e79;p=simgear.git Shadow map now available in effects --- diff --git a/simgear/scene/material/Effect.hxx b/simgear/scene/material/Effect.hxx index ab795289..0a5ffe2b 100644 --- a/simgear/scene/material/Effect.hxx +++ b/simgear/scene/material/Effect.hxx @@ -91,7 +91,8 @@ public: LIGHTING_BUFFER, MIDDLE_BLOOM_BUFFER, BLOOM_BUFFER, - AO_BUFFER + AO_BUFFER, + SHADOW_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 88355e36..679d67e3 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -871,6 +871,7 @@ namespace TextureBuilder::Registrar installMiddleBloomBuffer("middle-bloom-buffer", new GBufferBuilder(Effect::MIDDLE_BLOOM_BUFFER)); TextureBuilder::Registrar installBloomBuffer("bloom-buffer", new GBufferBuilder(Effect::BLOOM_BUFFER)); TextureBuilder::Registrar installAoBuffer("ao-buffer", new GBufferBuilder(Effect::AO_BUFFER)); + TextureBuilder::Registrar installShadowBuffer("shadow-buffer", new GBufferBuilder(Effect::SHADOW_BUFFER)); } }