2024-02-28 10:14:39 +01:00
|
|
|
#version 430 core
|
|
|
|
|
|
|
|
layout(location = 0) in vec3 vertexPosition;
|
|
|
|
layout(location = 1) in vec3 vertexNormal;
|
|
|
|
|
|
|
|
uniform mat4 transformation;
|
|
|
|
uniform mat4 modelMatrix;
|
|
|
|
|
2024-02-29 09:09:11 +01:00
|
|
|
out vec3 vecNormal;
|
|
|
|
out vec3 worldPos;
|
|
|
|
|
2024-02-28 10:14:39 +01:00
|
|
|
void main()
|
|
|
|
{
|
2024-02-29 09:09:11 +01:00
|
|
|
worldPos = (modelMatrix* vec4(vertexPosition,1)).xyz;
|
|
|
|
vecNormal = (modelMatrix* vec4(vertexNormal,0)).xyz;
|
|
|
|
gl_Position = transformation * vec4(vertexPosition, 1.0);
|
2024-02-28 10:14:39 +01:00
|
|
|
}
|