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_modelMatrix;
uniform highp mat4 u_viewProjectionMatrix;
uniform highp mat4 u_normalMatrix;
@ -21,6 +22,7 @@ vertex =
}
fragment =
#version 120
uniform mediump vec4 u_ambientColor;
uniform mediump vec4 u_diffuseColor;
uniform highp vec3 u_lightPosition;