17 lines
314 B
GLSL
17 lines
314 B
GLSL
#version 330 core
|
|
|
|
layout(location=0) in vec3 position;
|
|
layout(location=1) in vec3 normal;
|
|
layout(location=2) in vec2 uv;
|
|
|
|
uniform mat4 view;
|
|
uniform mat4 projection;
|
|
|
|
out vec3 uv_coords;
|
|
|
|
void main() {
|
|
vec4 pos = projection * view * vec4(position, 1.0);
|
|
gl_Position = pos.xyww;
|
|
uv_coords = position;
|
|
}
|