23 lines
338 B
GLSL
23 lines
338 B
GLSL
#version 330 core
|
|
|
|
layout(location = 0) in vec3 aPos;
|
|
layout(location = 1) in vec3 aColor;
|
|
layout(location = 2) in vec2 aTextCoord;
|
|
|
|
out vec2 TexCoord;
|
|
|
|
uniform mat4x4 camera;
|
|
|
|
void main()
|
|
{
|
|
|
|
TexCoord = aTextCoord;
|
|
vec4 temp = vec4(aPos.xyz,1.0);
|
|
gl_Position = /**/ camera * /**/ temp;
|
|
}
|
|
|
|
//struct
|
|
|
|
|
|
|