mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
ENABLE_ALLOW_NEGATIVE_Z -> Fixed picking of sinking object
This commit is contained in:
parent
bf981ae049
commit
b140709fa8
4 changed files with 53 additions and 2 deletions
|
@ -50,6 +50,10 @@ std::pair<bool, std::string> GLShadersManager::init()
|
|||
);
|
||||
// used to render variable layers heights in 3d editor
|
||||
valid &= append_shader("variable_layer_height", { "variable_layer_height.vs", "variable_layer_height.fs" });
|
||||
#if ENABLE_ALLOW_NEGATIVE_Z
|
||||
// used to render volumes during picking pass
|
||||
valid &= append_shader("picking", { "picking.vs", "picking.fs" });
|
||||
#endif // ENABLE_ALLOW_NEGATIVE_Z
|
||||
|
||||
return { valid, error };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue