- occlusion.storage(GL::RGB, w, h);
- occlusion.set_min_filter(GL::NEAREST);
- occlusion.set_mag_filter(GL::NEAREST);
+ occlude_shader.attach_shader(get_fullscreen_vertex_shader());
+ occlude_shader.attach_shader_owned(new FragmentShader(occlude_fs));
+ occlude_shader.link();
+
+ combine_shader.attach_shader(get_fullscreen_vertex_shader());
+ combine_shader.attach_shader_owned(new FragmentShader(combine_fs));
+ combine_shader.link();
+
+ occlusion.storage(RGB, w, h);
+ occlusion.set_min_filter(NEAREST);
+ occlusion.set_mag_filter(NEAREST);
+ occlusion.set_wrap(CLAMP_TO_EDGE);