for(unsigned i=0; i<6; ++i)
{
TextureCubeFace face = TextureCube::enumerate_faces(i);
- Bind _bind_fbo(fbo[i]);
+ fbo[i].bind();
fbo[i].clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT);
camera.set_look_direction(env_tex.get_face_direction(face));
camera.set_up_direction(env_tex.get_t_direction(face));
env_renderer.exclude(renderable);
env_renderer.render(environment);
}
+ Framebuffer::unbind();
}
void EnvironmentMap::finish_frame() const