Almost there...

This commit is contained in:
2016-06-27 16:15:10 -04:00
parent fdfe955787
commit cecd37420d
7 changed files with 79 additions and 31 deletions

View File

@@ -4,5 +4,6 @@ uniform sampler2D sTexture;
void main() {
vec4 tex = texture2D(sTexture, gl_TexCoord[0].st);
gl_FragColor = clamp(tex, 0.0, 1.0);
vec4 color = mix(vec4(0.0, 0.0, 0.3, 1.0), vec4(1.0, 1.0, 0.0, 1.0), tex.r);
gl_FragColor = clamp(color, 0.0, 1.0);
}