mirror of
https://github.com/schibo/1964js.git
synced 2025-04-02 10:52:54 -04:00
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
17 lines
No EOL
367 B
GLSL
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;
|
|
}
|
|
} |