summaryrefslogtreecommitdiff
path: root/vk-cube/vk-cube-vs.glsl
blob: e3b83d7e38d087ca47deba2ede6eaa80ca3dc263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#version 450
// ================================================================================================
// Vertex shader
//
// Build:
//     $ glslc -o vk-cube-vs.spv -fshader-stage=vertex vk-cube-vs.glsl
//
// Changelog:
//     ??/??/????: Initial release
//
// License:
//     Copyright (c) 2026 Hunter Kvalevog
//
//     Permission to use, copy, modify, and/or distribute this software for any
//     purpose with or without fee is hereby granted.
//
//     THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
//     WITH REGARD TO THIS SOFTWARE.
// ================================================================================================

layout (binding = 0) uniform UBO
{
    mat4 mvp;
};

layout (location = 0) in vec3 v_p;

void main()
{
    gl_Position = mvp * vec4(v_p, 1.0f);
}