21 lines
327 B
GLSL
21 lines
327 B
GLSL
#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;
|
|
|
|
}
|