Browse Source

apply transformation matrix

Odilitime 1 year ago
parent
commit
a1576a5777
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      res/shaders/TextureShader.vert

+ 2
- 1
res/shaders/TextureShader.vert View File

@@ -1,8 +1,9 @@
1 1
 #version 330
2
+uniform mat4 transform;
2 3
 layout (location = 0) in vec3 vertexIn;
3 4
 layout (location = 1) in vec2 texCoordIn;
4 5
 out vec2 texCoordPipe;
5 6
 void main() {
6
-    gl_Position = vec4(vertexIn, 1.0);
7
+    gl_Position = transform * vec4(vertexIn, 1.0);
7 8
     texCoordPipe = texCoordIn;
8 9
 }

Loading…
Cancel
Save