summaryrefslogtreecommitdiffstats
path: root/src/multimedia/shaders/argb.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/shaders/argb.frag')
-rw-r--r--src/multimedia/shaders/argb.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/multimedia/shaders/argb.frag b/src/multimedia/shaders/argb.frag
new file mode 100644
index 000000000..1fd7d1bdf
--- /dev/null
+++ b/src/multimedia/shaders/argb.frag
@@ -0,0 +1,17 @@
+#version 440
+
+layout(location = 0) in vec2 qt_TexCoord;
+layout(location = 0) out vec4 fragColor;
+
+layout(std140, binding = 0) uniform buf {
+ mat4 matrix;
+ mat4 colorMatrix;
+ float opacity;
+} ubuf;
+
+layout(binding = 1) uniform sampler2D rgbTexture;
+
+void main()
+{
+ fragColor = texture(rgbTexture, qt_TexCoord) * ubuf.colorMatrix * ubuf.opacity;
+}