mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-11 05:11:16 +00:00
b7947b48a5
Too many places to keep up to date.
22 lines
431 B
GLSL
22 lines
431 B
GLSL
#version 450
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
#include "entity.h"
|
|
|
|
layout (set = 0, binding = 0) uniform
|
|
#include "matrices.h"
|
|
;
|
|
|
|
layout (set = 1, binding = 0) buffer Entities {
|
|
Entity entities[];
|
|
};
|
|
|
|
layout (location = 0) in vec4 vertex;
|
|
layout (location = 2) in uint entid;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec3 vert = vertex * entities[entid].transform;
|
|
gl_Position = Projection3d * (View * vec4 (vert, 1));
|
|
}
|