summaryrefslogtreecommitdiffstats
path: root/tests/manual/wave/BackgroundEffect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/wave/BackgroundEffect.qml')
-rw-r--r--tests/manual/wave/BackgroundEffect.qml35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/manual/wave/BackgroundEffect.qml b/tests/manual/wave/BackgroundEffect.qml
new file mode 100644
index 000000000..a583cb3e1
--- /dev/null
+++ b/tests/manual/wave/BackgroundEffect.qml
@@ -0,0 +1,35 @@
+// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import Qt3D.Core 2.0
+import Qt3D.Render 2.0
+
+Effect {
+ id: root
+
+ techniques: [
+ Technique {
+ graphicsApiFilter {
+ api: GraphicsApiFilter.OpenGL
+ profile: GraphicsApiFilter.CoreProfile
+ majorVersion: 3
+ minorVersion: 1
+ }
+
+ filterKeys: [ FilterKey { name: "renderingStyle"; value: "forward" } ]
+
+ renderPasses: [
+ RenderPass {
+ shaderProgram: ShaderProgram {
+ vertexShaderCode: loadSource( "qrc:/shaders/background.vert" )
+ fragmentShaderCode: loadSource( "qrc:/shaders/background.frag" )
+ }
+
+ renderStates: [
+ DepthTest { depthFunction: DepthTest.Always }
+ ]
+ }
+ ]
+ }
+ ]
+}