2015-12-31 00:09:45 +00:00
|
|
|
in vec4 vertex;
|
|
|
|
uniform mat4 viewMatrix;
|
2013-12-21 22:48:54 +00:00
|
|
|
uniform vec3 cameraLocation;
|
2015-12-07 22:32:55 +00:00
|
|
|
out vec3 unprojected;
|
2013-12-21 22:48:54 +00:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
unprojected = cameraLocation + vertex.xyz * 500.0;
|
|
|
|
gl_Position = viewMatrix * vec4(unprojected, 1.0);
|
|
|
|
}
|