Back to shaders
Shader test bench
Fragment
runnable fragment
Complete GLSL fragment shader. Stronghold runs it directly when the browser can compile it.
Code
precision mediump float;
uniform vec3 uColor;
uniform sampler2D uTexture;
varying vec2 v_texcoord;
void main() {
vec4 textureColor = texture2D(uTexture, v_texcoord);
gl_FragColor = textureColor;
}