1964js/shaders/triangle-fragment.shader
Derek "Turtle" Roe 8b7996442b See long description
Add .gitattributes
Add .gitignore
Update README to GitHub-flavored Markdown
Fix shader files on Windows and on systems that don't handle files
without extensions well
2016-01-02 00:42:39 -06:00

17 lines
No EOL
367 B
GLSL

precision mediump float;
varying lowp vec4 vColor;
varying mediump float v_Dot;
varying mediump vec2 vTextureCoord;
uniform int uWireframe;
vec4 color = vec4(1.0, 0.5, 0.5, 1.0);
void main(void) {
if (uWireframe == 1) {
gl_FragColor = vec4(color.xyz, color.a);
} else {
gl_FragColor = vColor;
}
}