Skip to content

Instantly share code, notes, and snippets.

@djg
Created May 12, 2014 07:51
Show Gist options
  • Save djg/adaff926c33d9156b3a5 to your computer and use it in GitHub Desktop.
Save djg/adaff926c33d9156b3a5 to your computer and use it in GitHub Desktop.
GLSL 1.2 -> GLSL 1.5
#version 150
out vec4 gl_FragColor
#ifdef GL_ES
precision mediump float;
#define COLOR_PRECISION lowp
#else
#define COLOR_PRECISION
#endif
uniform COLOR_PRECISION vec4 uRenderColor;
uniform sampler2D uTexture;
void main() {
vec4 color = uRenderColor;
COLOR_PRECISION float mask = 1.0;
color *= mask;
gl_FragColor = color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment