]> git.mxchange.org Git - simgear.git/commitdiff
Shadow map now available in effects
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 31 Mar 2012 20:40:39 +0000 (22:40 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 31 Mar 2012 20:40:39 +0000 (22:40 +0200)
simgear/scene/material/Effect.hxx
simgear/scene/material/TextureBuilder.cxx

index ab795289d4f32cc6f75eca1e4ef6a95330100ba7..0a5ffe2b333008e7c86d3d479528a85576389fc8 100644 (file)
@@ -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
index 88355e3685014d772855fbf84dce8d5fe414f8dc..679d67e3215f27f67f57e98ccc84fdd7e4f55b73 100644 (file)
@@ -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));
 }
 
 }