mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-26 13:41:21 +00:00
They sort of kind of maybe try to work, but there's plenty wrong. I suspect synchronization and probably other factors.
29 lines
653 B
GLSL
29 lines
653 B
GLSL
#version 450
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
layout (set = 0, binding = 0) uniform
|
|
#include "matrices.h"
|
|
;
|
|
|
|
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
|
|
gl_Position = View * (Model * position);
|
|
o_velocity = View * (Model * velocity);
|
|
o_color = color;
|
|
o_ramp = ramp;
|
|
}
|