openGL work and other parts

This commit is contained in:
2016-09-11 12:11:54 +02:00
parent 69dfbe6693
commit d910e88220
43 changed files with 4813 additions and 261 deletions

20
res/gl/fragmentLine.glsl Normal file
View File

@@ -0,0 +1,20 @@
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
uniform vec3 lightWorldPos;
uniform vec4 color;
// interpolated values
varying vec3 v_WorldPos;
varying vec3 v_normal;
varying vec2 v_texcoord;
void main() {
// Set fragment color from texture
gl_FragColor = color;
}