2019-10-16 01:27:17 +02:00
|
|
|
|
#version 330
|
|
|
|
|
|
|
|
|
|
in vec3 vPosition;
|
|
|
|
|
in vec3 vNormal;
|
|
|
|
|
in vec3 vColor;
|
|
|
|
|
|
|
|
|
|
out vec3 normal;
|
|
|
|
|
out vec3 color;
|
|
|
|
|
out vec3 position;
|
|
|
|
|
|
|
|
|
|
uniform mat4 modelViewMatrix;
|
|
|
|
|
uniform mat4 modelMatrix;
|
|
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
|
|
|
|
normal = vNormal;
|
|
|
|
|
color = vColor;
|
|
|
|
|
position = vPosition;
|
|
|
|
|
|
2019-10-27 02:28:56 +02:00
|
|
|
|
gl_Position = modelViewMatrix * vec4(vPosition.xzy, 1.0);
|
2019-10-16 01:27:17 +02:00
|
|
|
|
}
|