-
-
Save djg/adaff926c33d9156b3a5 to your computer and use it in GitHub Desktop.
GLSL 1.2 -> GLSL 1.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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