mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-05 14:51:06 +00:00
Faster Preview View (#15884)
Co-authored-by: Kris Austin <kris.austin@gmail.com>
This commit is contained in:
@@ -37,6 +37,8 @@ static constexpr float MAX_WIPES_RADIUS_MM = 1.0f;
|
||||
// Used for positions, displacements and so on.
|
||||
//
|
||||
using Vec3 = std::array<float, 3>;
|
||||
// ORCA: the per vertex data uploaded as GL_RGBA32F, see extract_pos_and_or_hwa().
|
||||
using Vec4 = std::array<float, 4>;
|
||||
|
||||
//
|
||||
// 4x4 square matrix with elements in column-major order:
|
||||
|
||||
@@ -80,6 +80,10 @@ public:
|
||||
// ORCA: section view. Cuts away where dot(plane, (x, y, z, 1)) < 0; { 0, 0, 0, 1 } keeps all.
|
||||
//
|
||||
void set_clipping_plane(const std::array<float, 4>& plane);
|
||||
//
|
||||
// ORCA: direction to the top light in eye space, shading the toolpaths and biasing their shadow lookup.
|
||||
//
|
||||
void set_light_top_dir(const Vec3& direction);
|
||||
|
||||
//
|
||||
// ************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user