summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/shared/texture.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/rhi/shared/texture.frag')
-rw-r--r--tests/manual/rhi/shared/texture.frag18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/manual/rhi/shared/texture.frag b/tests/manual/rhi/shared/texture.frag
new file mode 100644
index 0000000000..5405444c68
--- /dev/null
+++ b/tests/manual/rhi/shared/texture.frag
@@ -0,0 +1,18 @@
+#version 440
+
+layout(location = 0) in vec2 v_texcoord;
+
+layout(location = 0) out vec4 fragColor;
+
+layout(std140, binding = 0) uniform buf {
+ mat4 mvp;
+ int flip;
+} ubuf;
+
+layout(binding = 1) uniform sampler2D tex;
+
+void main()
+{
+ vec4 c = texture(tex, v_texcoord);
+ fragColor = vec4(c.rgb * c.a, c.a);
+}