Back to shaders
Shader test bench
Frag Stippling
runnable fragment
Complete GLSL fragment shader. Stronghold runs it directly when the browser can compile it.
Code
precision mediump float;
#define GLSLIFY 1
// Texture with the particle profile
uniform sampler2D u_texture;
/*
* The main program
*/
void main() {
// Fragment shader output
gl_FragColor = vec4(vec3(0.0), texture2D(u_texture, gl_PointCoord).a);
}