added play, option, and quit buttons
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user