Files
wmo-editor/shaders/wmo.frag
2026-01-06 18:04:07 -06:00

16 lines
324 B
GLSL

#version 400 core
out vec4 FragColor;
in vec2 TexCoord;
in vec4 VertexColour;
uniform sampler2D texSampler;
void main() {
// sample the texture
vec4 texColor = texture(texSampler, TexCoord);
if (texColor.a < 0.1) discard;
//FragColor = vec4(0.6, 0.0, 1.0, 1.0);
FragColor = texColor * VertexColour;
}