Shadow map now available in effects

This commit is contained in:
Frederic Bouvier 2012-03-31 22:40:39 +02:00
parent 2b62411a78
commit 4de05629ee
2 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,8 @@ public:
LIGHTING_BUFFER, LIGHTING_BUFFER,
MIDDLE_BLOOM_BUFFER, MIDDLE_BLOOM_BUFFER,
BLOOM_BUFFER, BLOOM_BUFFER,
AO_BUFFER AO_BUFFER,
SHADOW_BUFFER
}; };
// Define what needs to be generated for this effect // Define what needs to be generated for this effect

View File

@ -871,6 +871,7 @@ namespace
TextureBuilder::Registrar installMiddleBloomBuffer("middle-bloom-buffer", new GBufferBuilder(Effect::MIDDLE_BLOOM_BUFFER)); TextureBuilder::Registrar installMiddleBloomBuffer("middle-bloom-buffer", new GBufferBuilder(Effect::MIDDLE_BLOOM_BUFFER));
TextureBuilder::Registrar installBloomBuffer("bloom-buffer", new GBufferBuilder(Effect::BLOOM_BUFFER)); TextureBuilder::Registrar installBloomBuffer("bloom-buffer", new GBufferBuilder(Effect::BLOOM_BUFFER));
TextureBuilder::Registrar installAoBuffer("ao-buffer", new GBufferBuilder(Effect::AO_BUFFER)); TextureBuilder::Registrar installAoBuffer("ao-buffer", new GBufferBuilder(Effect::AO_BUFFER));
TextureBuilder::Registrar installShadowBuffer("shadow-buffer", new GBufferBuilder(Effect::SHADOW_BUFFER));
} }
} }