quakeforge/libs/video/renderer/vulkan/shader/alias_depth.vert
Bill Currie 64740b0f73 [vulkan] Create shaders for alias deferred rendering
A simple (no uv output) vertex shader that still blends the two frames,
and the relevant g-buffer fragment shader.
2021-02-17 13:35:19 +09:00

28 lines
512 B
GLSL

#version 450
layout (set = 0, binding = 0) uniform Matrices {
mat4 Projection;
mat4 View;
mat4 Sky;
};
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 = Projection * (View * pos);
}