mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-19 00:51:51 +00:00
6aaf5c3722
This gets the pipelines loaded (and unloaded on shutdown). Probably the easy part :P. Still need to sort out the command buffers, synchronization, and particle generation (and probably a bunch else that's not coming to mind).
31 lines
649 B
GLSL
31 lines
649 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 position;
|
|
layout (location = 1) in vec4 velocity;
|
|
layout (location = 2) in vec4 color;
|
|
layout (location = 3) in vec4 ramp;
|
|
|
|
layout (location = 0) out vec4 o_velocity;
|
|
layout (location = 1) out vec4 o_color;
|
|
layout (location = 2) out vec4 o_ramp;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
// geometry shader will take care of Projection and View
|
|
gl_Position = Model * position;
|
|
o_velocity = Model * velocity;
|
|
o_color = color;
|
|
o_ramp = ramp;
|
|
}
|