Tech ENABLE_GL_IMGUI_SHADERS - Render imgui using shaders

(cherry picked from commit prusa3d/PrusaSlicer@d0d89a4d5b)
This commit is contained in:
enricoturri1966 2023-10-27 09:05:47 +08:00 committed by Noisyfox
parent 8dc82e7a8d
commit 15bad7fc19
6 changed files with 140 additions and 41 deletions

View file

@ -33,6 +33,8 @@ std::pair<bool, std::string> GLShadersManager::init()
bool valid = true;
// imgui shader
valid &= append_shader("imgui", { "imgui.vs", "imgui.fs" });
// basic shader, used to render all what was previously rendered using the immediate mode
valid &= append_shader("flat_attr", { "flat_attr.vs", "flat.fs" });
// basic shader for textures, used to render textures