passthru.vert Example File | Qt 3D 5.6

Qt 5.6 | Qt 3D | Qt 3D: Tessellation Modes QML Example | passthru.vert Example File

Qt 5.6.2 Reference Documentation

# passthru.vert Example File

tessellation-modes/shaders/passthru.vert

      #version 400 core

      in vec3 vertexPosition;

      void main()
      {
          // We do the transformations later in the
          // tessellation evaluation shader
          gl_Position = vec4( vertexPosition, 1.0 );
      }