mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-29 13:52:07 +00:00
Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders. 1st installment.
Shader: flat - Default bed (cherry picked from commit prusa3d/PrusaSlicer@a5ff37013b)
This commit is contained in:
committed by
Noisyfox
parent
5fc056edfb
commit
9f4713eee8
@@ -92,6 +92,7 @@ public:
|
||||
const std::array<int, 4>& get_viewport() const { return m_viewport; }
|
||||
const Transform3d& get_view_matrix() const { return m_view_matrix; }
|
||||
const Transform3d& get_projection_matrix() const { return m_projection_matrix; }
|
||||
Transform3d get_projection_view_matrix() const { return m_projection_matrix * m_view_matrix; }
|
||||
|
||||
//BBS
|
||||
const Eigen::Quaterniond& get_view_rotation() const {return m_view_rotation; }
|
||||
|
||||
Reference in New Issue
Block a user