state->modelview_matrix = MatrixStack::modelview().top();
standard_shdata.uniform("projection_matrix", MatrixStack::projection().top());
}
+ changed |= MATRIX|STANDARD_SHDATA;
}
void Renderer::set_matrix(const Matrix &matrix)
state->clipping = c;
state->clipping_matrix = state->modelview_matrix;
if(c)
+ {
c->update_shader_data(standard_shdata, state->clipping_matrix);
+ changed |= STANDARD_SHDATA;
+ }
changed |= LEGACY_CLIPPING;
}
if(state->lighting!=old_lighting)
{
if(state->lighting)
+ {
state->lighting->update_shader_data(standard_shdata, state->lighting_matrix);
+ changed |= STANDARD_SHDATA;
+ }
changed |= LEGACY_LIGHTING;
}
if(state->clipping!=old_clipping)
{
if(state->clipping)
+ {
state->clipping->update_shader_data(standard_shdata, state->clipping_matrix);
+ changed |= STANDARD_SHDATA;
+ }
changed |= LEGACY_CLIPPING;
}
}