#include "batch.h"
#include "buffer.h"
#include "camera.h"
-#include "clipping.h"
#include "error.h"
#include "framebuffer.h"
#include "lighting.h"
add_shader_data(l->get_shader_data());
}
-void Renderer::set_clipping(const Clipping *c)
-{
- state->clipping = c;
- if(c)
- add_shader_data(c->get_shader_data());
-}
-
void Renderer::set_shader_program(const Program *p, const ProgramData *d)
{
state->shprog = p;
pipeline_state.set_front_face(state->front_face);
pipeline_state.set_face_cull(state->face_cull);
- pipeline_state.set_enabled_clip_planes(state->clipping ? (1<<state->clipping->get_n_planes())-1 : 0);
if(state->texture_count<texture_stack.size())
flush_textures();