16 lines
212 B
GLSL
16 lines
212 B
GLSL
#version 450
|
|
|
|
uniform mat4 P;
|
|
|
|
in vec3 pos;
|
|
in vec2 tex;
|
|
in vec4 col;
|
|
out vec2 tex_coord;
|
|
out vec4 fragment_color;
|
|
|
|
void main() {
|
|
gl_Position = mul(vec4(pos, 1.0), P);
|
|
tex_coord = tex;
|
|
fragment_color = col;
|
|
}
|