setup complete - visible character
This commit is contained in:
14
bin/shaders/shaderTilemap.frag
Normal file
14
bin/shaders/shaderTilemap.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 330 core
|
||||
in vec2 texCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D image;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texColor = texture(image, texCoord);
|
||||
if(texColor.a < 0.1)
|
||||
discard;
|
||||
fragColor = texColor;
|
||||
}
|
||||
Reference in New Issue
Block a user