mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
b7947b48a5
Too many places to keep up to date.
27 lines
531 B
GLSL
27 lines
531 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;
|
|
float blend;
|
|
};
|
|
|
|
layout (location = 0) in vec4 vertexa;
|
|
layout (location = 1) in vec3 normala;
|
|
layout (location = 2) in vec4 vertexb;
|
|
layout (location = 3) in vec3 normalb;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec4 vertex;
|
|
vec4 pos;
|
|
|
|
vertex = mix (vertexa, vertexb, blend);
|
|
pos = (Model * vertex);
|
|
gl_Position = Projection3d * (View * pos);
|
|
}
|