summaryrefslogtreecommitdiff
path: root/tests/manual/wave/BackgroundEffect.qml
blob: bdd018c9093c75644f8f0e3665fb3c4a8b62d69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

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 }
                    ]
                }
            ]
        }
    ]
}