diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-05-27 18:26:43 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-05-27 18:26:43 -0500 |
| commit | fa0311891587e35d0770b5e4b2e207c677589f3c (patch) | |
| tree | f35b6b6eb4e59ab6858ea89ce5755666610a32e6 /vk-cube/vk-cube-vs.glsl | |
| parent | b1f6b7d35b8f072f5c379518bc23b186890765b8 (diff) | |
Diffstat (limited to 'vk-cube/vk-cube-vs.glsl')
| -rw-r--r-- | vk-cube/vk-cube-vs.glsl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vk-cube/vk-cube-vs.glsl b/vk-cube/vk-cube-vs.glsl new file mode 100644 index 0000000..e3b83d7 --- /dev/null +++ b/vk-cube/vk-cube-vs.glsl @@ -0,0 +1,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); +} + |