mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 14:21:52 +09:00
moved essential resources out of the assets directory and into the jar
This commit is contained in:
9
src/shaders/reflect.frag
Normal file
9
src/shaders/reflect.frag
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user