mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-01 00:21:50 +00:00
2740f6093b
Still need to work on the code, though.
27 lines
510 B
GLSL
27 lines
510 B
GLSL
#version 450
|
|
|
|
layout (set = 0, binding = 0) uniform Matrices {
|
|
mat4 Projection3d;
|
|
mat4 View;
|
|
mat4 Sky;
|
|
mat4 Projection2d;
|
|
};
|
|
|
|
layout (push_constant) uniform PushConstants {
|
|
mat4 Model;
|
|
};
|
|
|
|
layout (location = 0) in vec4 vertex;
|
|
layout (location = 1) in vec4 tl_uv;
|
|
|
|
layout (location = 0) out vec4 tl_st;
|
|
layout (location = 1) out vec3 direction;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
// geometry shader will take care of Projection and View
|
|
gl_Position = Model * vertex;
|
|
direction = (Sky * vertex).xyz;
|
|
tl_st = tl_uv;
|
|
}
|