blob: 50e8218324a8aab40732dfd1ee5c7a45a011efed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#version 330 core
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec2 vertexUV;
layout(location = 2) in vec3 vNorm;
out vec2 UV;
out vec3 FragmentPos;
out vec3 Normal;
uniform mat4 MVP;
uniform mat4 modelPosition;
void main() {
gl_Position = MVP * vec4(vertexPosition_modelspace, 1);
UV = vertexUV;
FragmentPos = vec3(modelPosition * vec4(vertexPosition_modelspace,1));
Normal = vNorm;
}
|