Files
loop/shader/shape/basic.vert
T
2023-03-14 20:24:33 +00:00

12 lines
267 B
GLSL

#version 450 core
layout (location = 0) in vec4 pos;
layout (location = 1) in vec4 col;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vCol;
out vec4 vPos;
void main() {
gl_Position = theMat * vec4(pos.xyz,1);
vCol = col;
vPos = pos;
}