File: simpleColor.vert

package info (click to toggle)
qt3d-opensource-src 5.11.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 124,732 kB
  • sloc: cpp: 301,057; ansic: 12,723; python: 445; objc: 244; pascal: 102; makefile: 34; xml: 30
file content (15 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 150 core

in vec3 vertexPosition;
out vec3 worldPosition;
uniform mat4 modelMatrix;
uniform mat4 mvp;

void main()
{
    // Transform position, normal, and tangent to world coords
    worldPosition = vec3(modelMatrix * vec4(vertexPosition, 1.0));

    // Calculate vertex position in clip coordinates
    gl_Position = mvp * vec4(worldPosition, 1.0);
}