calamity-cobra-2/build/res/shader/texture_quad.vs

16 lines
274 B
Plaintext
Raw Normal View History

2023-08-14 07:58:13 +00:00
#version 330 core
layout (location = 0) in vec3 lPosition;
layout (location = 1) in vec2 lUV;
uniform mat4 uModel;
uniform mat4 uProjection;
uniform mat4 uView;
out vec2 iUV;
void main()
{
gl_Position = uProjection * uView * uModel * vec4(lPosition, 1.0);
iUV = lUV;
}