2024-01-31 00:12:14 +11:00
|
|
|
|
|
|
|
#version 460 core
|
|
|
|
#extension GL_ARB_bindless_texture : require
|
|
|
|
|
2024-02-16 21:50:46 +11:00
|
|
|
in vec4 colour;
|
2024-01-31 00:12:14 +11:00
|
|
|
in flat sampler2D tex;
|
|
|
|
in vec2 texPos;
|
|
|
|
|
|
|
|
out vec4 FragColour;
|
|
|
|
|
|
|
|
uniform mat4 tex_mat;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec4 texdata = texture2D(tex, texPos);
|
2024-02-16 21:50:46 +11:00
|
|
|
FragColour = tex_mat * texdata * colour;
|
2024-01-31 00:12:14 +11:00
|
|
|
|
|
|
|
if(FragColour.a == 0) discard;
|
|
|
|
}
|
|
|
|
|