2021-01-18 08:13:52 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout (set = 0, binding = 0) uniform Matrices {
|
2021-12-08 07:44:22 +00:00
|
|
|
mat4 Projection3d;
|
2021-01-18 08:13:52 +00:00
|
|
|
mat4 View;
|
|
|
|
mat4 Sky;
|
2021-12-08 07:44:22 +00:00
|
|
|
mat4 Projection2d;
|
2021-01-18 08:13:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
layout (push_constant) uniform PushConstants {
|
|
|
|
mat4 Model;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout (location = 0) in vec4 vertex;
|
|
|
|
layout (location = 1) in vec4 tl_uv;
|
|
|
|
|
|
|
|
layout (location = 0) out vec4 tl_st;
|
2021-01-19 16:25:54 +00:00
|
|
|
layout (location = 1) out vec3 direction;
|
2021-01-18 08:13:52 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
main (void)
|
|
|
|
{
|
2021-12-08 07:44:22 +00:00
|
|
|
gl_Position = Projection3d * (View * (Model * vertex));
|
2021-01-23 11:42:53 +00:00
|
|
|
direction = (Sky * vertex).xyz;
|
2021-01-18 08:13:52 +00:00
|
|
|
tl_st = tl_uv;
|
|
|
|
}
|