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