2022-04-23 14:32:36 +02:00
|
|
|
#version 440
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
layout(location=0) in vec2 qt_TexCoord0;
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
layout(location=0) out vec4 fragColor;
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
layout(std140, binding=0) uniform buf {
|
|
|
|
mat4 qt_Matrix;
|
|
|
|
float qt_Opacity;
|
|
|
|
} ubuf;
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
layout(binding=1) uniform sampler2D source;
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
void main() {
|
|
|
|
fragColor = texture(source, qt_TexCoord0) * ubuf.qt_Opacity;
|
2020-09-10 11:40:07 +02:00
|
|
|
}
|