Files
loop/shader/texture/simpleWorld.vert
2023-03-07 22:53:32 +00:00

11 lines
249 B
GLSL

#version 450 core
layout (location = 0) in vec3 pos;
layout (location = 1) in vec2 texPos;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec2 vTexPos;
void main()
{
gl_Position = theMat * vec4(pos,1.0) ;
vTexPos = texPos;
}