blob: aa183a25b720f24432b55666305681be7f6ed383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#version 130
//layout(location = 0)in vec3 vertex;
in vec3 vertex;
in vec2 texc;
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
out vec2 texCoord;
out vec4 fragCoord;
void main()
{
texCoord = texc;
fragCoord = vec4(vertex, 1.0f);
gl_Position = projection * view * model * fragCoord;
}
|