shaders/default.vert
branchv_0
changeset 11 0aeedc35ebed
parent 2 3faef2f5128e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shaders/default.vert	Sat Dec 02 23:11:56 2023 +0100
@@ -0,0 +1,13 @@
+#version 330 core
+
+uniform  mat4  uModel;
+uniform  mat4  uView;
+uniform  mat4  uProjection;
+in       vec3  aVertexXYZ;
+in       vec2  aTextureXY;
+out      vec2  vTextureXY;
+
+void main() {
+	gl_Position = uProjection * uView * uModel * vec4(aVertexXYZ, 1.0f);
+	vTextureXY = aTextureXY;
+}