SLA gizmo now uses glClipPlane instead of touching projection matrix

Messing with the projection matrix invalidates the z-buffer
This currently only works in OpenGL legacy mode
This commit is contained in:
Lukas Matena 2019-03-25 10:47:23 +01:00
parent bc9164e40c
commit 273fcf68a1
4 changed files with 30 additions and 36 deletions

View file

@ -448,7 +448,7 @@ private:
void set_sla_support_data(ModelObject* model_object, const Selection& selection);
bool gizmo_event(SLAGizmoEventType action, const Vec2d& mouse_position = Vec2d::Zero(), bool shift_down = false);
std::pair<float, float> get_sla_clipping_plane() const;
ClippingPlane get_sla_clipping_plane() const;
void render_current_gizmo(const Selection& selection) const;
void render_current_gizmo_for_picking_pass(const Selection& selection) const;