12 lines
264 B
GLSL
12 lines
264 B
GLSL
#version 460 core
|
|
|
|
in vec2 pass_textureCoords;
|
|
|
|
uniform sampler2D textureSampler;
|
|
uniform float opacity;
|
|
out vec4 fragColor;
|
|
|
|
void main() {
|
|
vec4 texColor = texture(textureSampler, pass_textureCoords);
|
|
fragColor = vec4(texColor.rgb, texColor.a * opacity);
|
|
} |