Browse Source

apply transformation matrix

master
Odilitime 5 years ago
parent
commit
a1576a5777
  1. 3
      res/shaders/TextureShader.vert

3
res/shaders/TextureShader.vert

@ -1,8 +1,9 @@ @@ -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