background.vert Example File | Qt 3D 5.6

Qt 5.6 | Qt 3D | Qt 3D: Wave QML Example | background.vert Example File

Qt 5.6.2 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;
      }