aboutsummaryrefslogtreecommitdiff
path: root/resources/shaders/anchorPoint.vert
diff options
context:
space:
mode:
Diffstat (limited to 'resources/shaders/anchorPoint.vert')
-rw-r--r--resources/shaders/anchorPoint.vert16
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/shaders/anchorPoint.vert b/resources/shaders/anchorPoint.vert
new file mode 100644
index 0000000..c074d00
--- /dev/null
+++ b/resources/shaders/anchorPoint.vert
@@ -0,0 +1,16 @@
+#version 330 core
+
+layout(location = 0) in vec3 position; // Position of the vertex
+layout(location = 2) in vec3 vcolor; // Normal of the vertex
+
+uniform mat4 proj;
+uniform mat4 view;
+uniform mat4 model;
+
+out vec4 vColor;
+
+void main() {
+ vColor = vec4(vcolor, 1.0);
+
+ gl_Position = proj * view * model * vec4(position, 1.0);
+}