This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/assets/shaders/vertex.shader

16 lines
248 B
Plaintext
Raw Normal View History

#version 330 core
layout (location = 0) in vec4 aVertex;
uniform mat4 ortho;
uniform mat4 view;
uniform mat4 model;
out vec2 TexCoord;
void main() {
gl_Position = ortho * view * model * vec4(aVertex.xy, 0, 1);
TexCoord = aVertex.zw;
}