shaders/first.vert
branchv_0
changeset 2 3faef2f5128e
parent 0 bb715a82a8f1
--- a/shaders/first.vert	Tue Nov 28 22:45:33 2023 +0100
+++ b/shaders/first.vert	Wed Nov 29 01:11:19 2023 +0100
@@ -1,13 +1,13 @@
 #version 330 core
 
-uniform mat4 model;
-uniform mat4 view;
-uniform mat4 projection;
-in vec3 vertices;
-in vec2 textureCoordinates;
-out vec2 textureCoordinate;
+uniform  mat4  uModel;
+uniform  mat4  uView;
+uniform  mat4  uProjection;
+in       vec3  aVertexXYZ;
+in       vec2  aTextureXY;
+out      vec2  vTextureXY;
 
 void main() {
-	gl_Position = projection * view * model * vec4(vertices, 1.0f);
-	textureCoordinate = textureCoordinates;
+	gl_Position = uProjection * uView * uModel * vec4(aVertexXYZ, 1.0f);
+	vTextureXY = aTextureXY;
 }