renderable.setup_frame();
environment.setup_frame();
+ Renderer env_renderer(0);
const Matrix *matrix = renderable.get_matrix();
Vector3 position = (*matrix)*Vector3();
camera.set_position(position);
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));
- Renderer env_renderer(&camera);
+ env_renderer.begin(&camera);
env_renderer.exclude(renderable);
env_renderer.exclude(*this);
env_renderer.render(environment);