Add #version 120 to make shaders work on Windows

USL-32
This commit is contained in:
Lipu Fei 2017-06-16 10:59:45 +02:00
parent 3240338f6d
commit adfe6ce63a
6 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,6 @@
[shaders]
vertex =
#version 120
uniform highp mat4 u_modelViewProjectionMatrix;
uniform lowp float u_active_extruder;
uniform lowp float u_shade_factor;
@ -28,6 +29,7 @@ vertex =
}
fragment =
#version 120
varying lowp vec4 v_color;
varying float v_line_type;

View file

@ -1,5 +1,6 @@
[shaders]
vertex =
#version 120
uniform highp mat4 u_modelViewProjectionMatrix;
attribute highp vec4 a_vertex;
attribute highp vec2 a_uvs;
@ -13,6 +14,7 @@ vertex =
}
fragment =
#version 120
uniform sampler2D u_layer0;
uniform sampler2D u_layer1;
uniform sampler2D u_layer2;