LNXSDK/Kha/Sources/Shaders/painter-image.frag.glsl

13 lines
217 B
Plaintext
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
#version 450
uniform sampler2D tex;
in vec2 texCoord;
in vec4 color;
out vec4 FragColor;
void main() {
vec4 texcolor = texture(tex, texCoord) * color;
texcolor.rgb *= color.a;
FragColor = texcolor;
}