prep for draw glow

This commit is contained in:
minjaesong
2017-07-09 20:29:35 +09:00
parent 5a5fb45c3b
commit 3ffdd7233f
8 changed files with 253 additions and 123 deletions

8
assets/aonly.frag Normal file
View File

@@ -0,0 +1,8 @@
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
void main(void) {
float alpha = texture2D(u_texture, v_texCoords).a;
gl_FragColor = vec4(alpha, alpha, alpha, 1.0);
}

0
assets/blendGlow.frag Normal file
View File

8
assets/rgbonly.frag Normal file
View File

@@ -0,0 +1,8 @@
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
void main(void) {
vec3 color = texture2D(u_texture, v_texCoords).rgb;
gl_FragColor = vec4(color, 1.0);
}