background.vert Example File | Qt3D Module 5.5

- Qt 5.5
- Qt3D Module
- Qt3D: Wave QML Example
- background.vert Example File
- Qt 5.5.1 Reference Documentation

# background.vert Example File

wave/shaders/background.vert

    #version 150 core

    in vec4 vertexPosition;
    in vec2 vertexTexCoord;

    out vec2 texCoord;

    uniform mat4 modelMatrix;

    void main()
    {
        texCoord = vertexTexCoord;
        gl_Position = modelMatrix * vertexPosition;
    }