diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2024-02-12 15:39:27 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2025-02-26 12:50:09 +0000 |
| commit | 6890ca55ba38682e3fc72dc6722954d376ae1277 (patch) | |
| tree | e11391ea52734e59805e7c07ba10a376f85f5a0a /shader.vert | |
| parent | b2bd9bccd8fffaae76c7f2f8373e641a6dd029d2 (diff) | |
Update for eba4a131
Diffstat (limited to 'shader.vert')
| -rw-r--r-- | shader.vert | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/shader.vert b/shader.vert new file mode 100644 index 0000000..e5aff9a --- /dev/null +++ b/shader.vert @@ -0,0 +1,23 @@ +#version 330 core + +// Input vertex data, different for all executions of this shader. +layout(location = 0) in vec3 vertexPosition_modelspace; +layout(location = 1) in vec2 vertexUV; + +out vec2 UV; + +uniform mat4 MVP; + +void main() { + + gl_Position = MVP * vec4(vertexPosition_modelspace, 1); + + UV = vertexUV; + + //fragmentcolor.x = vertexPosition_modelspace.x; //= vertexColor; + //fragmentcolor.y = vertexPosition_modelspace.y; //= vertexColor; + //fragmentcolor.z = vertexPosition_modelspace.z; //= vertexColor; + + //fragmentcolor += 1; + //fragmentcolor /= 2; +} |
