mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 11:49:09 +08:00
Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Cut
This commit is contained in:
parent
14c23a6526
commit
661ecdc142
@ -195,7 +195,11 @@ void GLGizmoCut::on_render()
|
|||||||
shader->stop_using();
|
shader->stop_using();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES
|
||||||
|
shader = wxGetApp().get_shader("gouraud_light_attr");
|
||||||
|
#else
|
||||||
shader = wxGetApp().get_shader("gouraud_light");
|
shader = wxGetApp().get_shader("gouraud_light");
|
||||||
|
#endif // ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES
|
||||||
#else
|
#else
|
||||||
glsafe(::glColor3f(1.0, 1.0, 0.0));
|
glsafe(::glColor3f(1.0, 1.0, 0.0));
|
||||||
::glBegin(GL_LINES);
|
::glBegin(GL_LINES);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user