This repository has been archived on 2026-05-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
toddcox-visualize-v0/glapp/shaders/main.vert
2018-12-12 02:13:47 -05:00

17 lines
296 B
GLSL

#version 440 core
layout(location=0) in vec3 vCol;
layout(location=1) in vec2 vPos;
smooth out vec3 color;
layout(std140, binding=3) uniform Matrices {
mat4 proj;
mat4 view;
mat4 model;
};
void main() {
gl_Position = proj * view * model * vec4(vPos, 0, 1);
color = vCol;
}