mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
bb700780ef
Move common qml stuff into ScreenPlayUtil
17 lines
313 B
GLSL
17 lines
313 B
GLSL
#version 440
|
|
|
|
layout(location=0) in vec2 qt_TexCoord0;
|
|
|
|
layout(location=0) out vec4 fragColor;
|
|
|
|
layout(std140, binding=0) uniform buf {
|
|
mat4 qt_Matrix;
|
|
float qt_Opacity;
|
|
} ubuf;
|
|
|
|
layout(binding=1) uniform sampler2D source;
|
|
|
|
void main() {
|
|
fragColor = texture(source, qt_TexCoord0) * ubuf.qt_Opacity;
|
|
}
|