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:
enricoturri1966 2023-10-23 22:47:07 +08:00 committed by Noisyfox
parent 5fc056edfb
commit 9f4713eee8
6 changed files with 77 additions and 14 deletions

View file

@ -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