2020-10-18 22:03:42 +02:00
|
|
|
#version 330
|
|
|
|
|
|
|
|
in vec4 inCoord;
|
|
|
|
in vec3 inNormal;
|
|
|
|
in vec2 inUV;
|
|
|
|
in vec4 inColor;
|
|
|
|
|
|
|
|
uniform mat4 uModelMatrix;
|
|
|
|
uniform mat4 uViewMatrix;
|
|
|
|
uniform mat4 uProjectionMatrix;
|
|
|
|
|
|
|
|
smooth out vec4 ioFragColor;
|
2020-10-31 22:37:26 +01:00
|
|
|
out vec3 ioNormal;
|
|
|
|
out vec2 ioUV;
|
2020-10-18 22:03:42 +02:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
ioFragColor = inColor;
|
2020-10-31 22:37:26 +01:00
|
|
|
ioNormal = inNormal;
|
|
|
|
ioUV = inUV;
|
2020-10-18 22:03:42 +02:00
|
|
|
gl_Position = (uProjectionMatrix * uViewMatrix * uModelMatrix * inCoord);
|
2020-10-19 22:16:42 +02:00
|
|
|
}
|