Browse Source

apply transformation matrix

master
Odilitime 2 years 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 @@
#version 330
uniform mat4 transform;
layout (location = 0) in vec3 vertexIn;
layout (location = 1) in vec2 texCoordIn;
out vec2 texCoordPipe;
void main() {
gl_Position = vec4(vertexIn, 1.0);
gl_Position = transform * vec4(vertexIn, 1.0);
texCoordPipe = texCoordIn;
}

Loading…
Cancel
Save