mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
prep for draw glow
This commit is contained in:
8
assets/aonly.frag
Normal file
8
assets/aonly.frag
Normal 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
0
assets/blendGlow.frag
Normal file
8
assets/rgbonly.frag
Normal file
8
assets/rgbonly.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user