diff options
Diffstat (limited to 'shaders/world.frag')
-rw-r--r-- | shaders/world.frag | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shaders/world.frag b/shaders/world.frag new file mode 100644 index 0000000..c45b4a0 --- /dev/null +++ b/shaders/world.frag @@ -0,0 +1,10 @@ +uniform sampler2D sampler; + +varying vec2 texCoord; + +void main(){ + vec4 color = texture2D(sampler, vec2(texCoord.x, 1-texCoord.y)); + if(color.a <= .1) + discard; + gl_FragColor = color; +} |