motherfucking git

This commit is contained in:
minjaesong
2019-10-14 15:40:01 +09:00
parent 1190974901
commit 4eb1940d13
13 changed files with 311 additions and 74 deletions

9
assets/reflect.frag Normal file
View File

@@ -0,0 +1,9 @@
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
void main(void) {
vec4 color = texture2D(u_texture, vec2(v_texCoords.x, 1.0 - v_texCoords.y));
vec4 alphamul = vec4(1.0, 1.0, 1.0, 0.5 * (1.0 - v_texCoords.y));
gl_FragColor = color * alphamul;
}