From 6890ca55ba38682e3fc72dc6722954d376ae1277 Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 12 Feb 2024 16:39:27 +0100 Subject: Update for eba4a131 --- shader.vert | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 shader.vert (limited to 'shader.vert') 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; +} -- cgit v1.3