mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
c75568c1cf
Many surfaces are missing (I suspect it's due to transform stage management in the index emitter), and currently only the light maps are rendered (still not binding the correct textures), but the basics are working.
25 lines
467 B
GLSL
25 lines
467 B
GLSL
#version 450
|
|
|
|
layout (set = 0, binding = 0) uniform Matrices {
|
|
mat4 Projection;
|
|
mat4 View;
|
|
mat4 Sky;
|
|
};
|
|
|
|
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)
|
|
{
|
|
gl_Position = Projection * (View * (Model * vertex));
|
|
direction = vertex.xyz;//(Sky * vertex).xyz;
|
|
tl_st = tl_uv;
|
|
}
|