13 lines
232 B
GLSL
13 lines
232 B
GLSL
#version 400 core
|
|
|
|
in vec2 passTexCoords;
|
|
out vec4 outColor;
|
|
|
|
uniform sampler2D spriteTexture;
|
|
uniform float alpha;
|
|
|
|
void main() {
|
|
vec4 tex = texture(spriteTexture, passTexCoords);
|
|
outColor = vec4(tex.rgb, tex.a * alpha);
|
|
}
|