-Bloom::Bloom(unsigned w, unsigned h):
- blur_shader("bloom_blur.glsl"),
- combine_shader("bloom_combine.glsl"),
- quad(get_fullscreen_quad()),
- nearest_sampler(get_nearest_sampler()),
- linear_sampler(get_linear_sampler())
+Bloom::Bloom(Resources &resources, unsigned w, unsigned h):
+ blur_shader(resources.get<Program>("_bloom_blur.glsl.shader")),
+ combine_shader(resources.get<Program>("_bloom_combine.glsl.shader")),
+ quad(resources.get<Mesh>("_fullscreen_quad.mesh")),
+ nearest_sampler(resources.get<Sampler>("_nearest_clamp.samp")),
+ linear_sampler(resources.get<Sampler>("_linear_clamp.samp"))