Add bloom buffer to effects

This commit is contained in:
Frederic Bouvier 2012-01-15 12:15:06 +01:00
parent c9a80caff5
commit cbf8687e3d
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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));
}
}