aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag')
-rw-r--r--tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag18
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag b/tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag
index 1b12df7c6d..cc3c9a0f14 100644
--- a/tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag
+++ b/tests/manual/scenegraph_lancelot/data/shared/shaders/culling.frag
@@ -1,9 +1,13 @@
-varying highp vec2 qt_TexCoord0;
-uniform sampler2D frontSource;
-uniform sampler2D backSource;
-uniform lowp float qt_Opacity;
+#version 440
+
+layout(location = 0) in vec2 qt_TexCoord0;
+layout(location = 0) out vec4 fragColor;
+
+layout(binding = 1) uniform sampler2D frontSource;
+layout(binding = 2) uniform sampler2D backSource;
+
void main() {
- gl_FragColor = gl_FrontFacing
- ? texture2D(frontSource, qt_TexCoord0)
- : texture2D(backSource, qt_TexCoord0);
+ fragColor = gl_FrontFacing
+ ? texture(frontSource, qt_TexCoord0)
+ : texture(backSource, qt_TexCoord0);
}