2021-02-17 04:35:19 +00:00
|
|
|
#version 450
|
2022-11-21 11:02:18 +00:00
|
|
|
#extension GL_GOOGLE_include_directive : enable
|
2023-01-22 10:23:15 +00:00
|
|
|
#extension GL_EXT_multiview : enable
|
2021-02-17 04:35:19 +00:00
|
|
|
|
2022-11-21 11:02:18 +00:00
|
|
|
layout (set = 0, binding = 0) uniform
|
|
|
|
#include "matrices.h"
|
|
|
|
;
|
2021-02-17 04:35:19 +00:00
|
|
|
|
|
|
|
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);
|
2023-01-22 10:23:15 +00:00
|
|
|
gl_Position = Projection3d * (View[gl_ViewIndex] * pos);
|
2021-02-17 04:35:19 +00:00
|
|
|
}
|