added play, option, and quit buttons

This commit is contained in:
2017-10-09 20:04:42 -05:00
parent 05a701b643
commit 9629b7edd7
7 changed files with 94 additions and 16 deletions

View File

@@ -15,7 +15,8 @@ uniform float weight[5] = float[] (0.227027, 0.1945946, 0.1216216, 0.054054, 0.0
void main() {
vec2 tex_offset = 1.0 / textureSize(u_texture, 0);
vec3 result = texture(u_texture, vTexCoord).rgb * weight[0];
vec4 color = texture(u_texture, vTexCoord);
vec3 result = color.rgb * weight[0];
if (horizontal == 1) {
for (int i = 1; i < 5; ++i) {
@@ -29,5 +30,5 @@ void main() {
}
}
gl_FragColor = vec4(result, 1.0);
gl_FragColor = vec4(result, color.a);
}