summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/shared/color.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/rhi/shared/color.frag')
-rw-r--r--tests/manual/rhi/shared/color.frag15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/manual/rhi/shared/color.frag b/tests/manual/rhi/shared/color.frag
new file mode 100644
index 0000000000..bb94a5a605
--- /dev/null
+++ b/tests/manual/rhi/shared/color.frag
@@ -0,0 +1,15 @@
+#version 440
+
+layout(location = 0) in vec3 v_color;
+
+layout(location = 0) out vec4 fragColor;
+
+layout(std140, binding = 0) uniform buf {
+ mat4 mvp;
+ float opacity;
+} ubuf;
+
+void main()
+{
+ fragColor = vec4(v_color * ubuf.opacity, ubuf.opacity);
+}