mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Fix legacy glsl shaders
By @smartavionics
This commit is contained in:
parent
687f598d81
commit
b2fc155c3b
2 changed files with 10 additions and 3 deletions
|
@ -12,6 +12,13 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#ifdef GL_ES
|
||||
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
||||
precision highp float;
|
||||
#else
|
||||
precision mediump float;
|
||||
#endif // GL_FRAGMENT_PRECISION_HIGH
|
||||
#endif // GL_ES
|
||||
uniform vec4 u_color;
|
||||
|
||||
void main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue