mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06: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:
parent
5fc056edfb
commit
9f4713eee8
6 changed files with 77 additions and 14 deletions
|
@ -35,6 +35,7 @@ std::pair<bool, std::string> GLShadersManager::init()
|
|||
|
||||
// basic shader, used to render all what was previously rendered using the immediate mode
|
||||
valid &= append_shader("flat", { "flat.vs", "flat.fs" });
|
||||
valid &= append_shader("flat_attr", { "flat_attr.vs", "flat.fs" });
|
||||
// basic shader for textures, used to render textures
|
||||
valid &= append_shader("flat_texture", { "flat_texture.vs", "flat_texture.fs" });
|
||||
// used to render 3D scene background
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue