2022-10-31 00:51:51 -04:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
layout (location = 0) in vec3 inPos;
|
|
|
|
layout (location = 1) in vec2 inUv;
|
|
|
|
layout (location = 2) in vec3 inNormal;
|
|
|
|
|
|
|
|
out vec2 outUv;
|
|
|
|
out vec3 outNormal;
|
|
|
|
|
|
|
|
uniform mat4 transform;
|
|
|
|
uniform mat4 projectMatrix;
|
2022-11-07 00:29:12 -05:00
|
|
|
uniform mat4 viewMatrix;
|
2022-10-31 00:51:51 -04:00
|
|
|
|
|
|
|
void main() {
|
2022-11-07 00:29:12 -05:00
|
|
|
gl_Position = projectMatrix * viewMatrix * transform * vec4(inPos, 1.0);
|
2022-10-31 00:51:51 -04:00
|
|
|
outUv = inUv;
|
|
|
|
outNormal = inNormal;
|
|
|
|
}
|