summaryrefslogtreecommitdiff
path: root/assets/shaders/vertex.vert
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-08-21 21:45:38 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-08-21 21:45:38 -0400
commit8bbef6b1f8fe61ae8b0f24693af28b7fa6e68237 (patch)
treeeaddcd8a1f6f735dc6ea2fe3380e5fe1c90754e6 /assets/shaders/vertex.vert
parent77d547596c23d5878fee417d3aa0a3bf38037e65 (diff)
pke: embed shaders in executable
Diffstat (limited to 'assets/shaders/vertex.vert')
-rw-r--r--assets/shaders/vertex.vert31
1 files changed, 0 insertions, 31 deletions
diff --git a/assets/shaders/vertex.vert b/assets/shaders/vertex.vert
deleted file mode 100644
index 8b2c133..0000000
--- a/assets/shaders/vertex.vert
+++ /dev/null
@@ -1,31 +0,0 @@
-#version 450
-
-layout(binding = 0) uniform UniformBufferObject {
- mat4 model;
- mat4 view;
- mat4 proj;
-} ubo;
-
-// vertex
-// layout(location = 0) in vec4 inColor;
-layout(location = 0) in vec3 inPosition;
-layout(location = 1) in vec3 inNorm;
-layout(location = 2) in vec2 inUV;
-
-// instance
-layout(location = 3) in mat4 instPosRotScale;
-
-// output
-layout(location = 0) out vec4 fragColor;
-layout(location = 1) out vec3 fragTexCoord;
-
-void main() {
- gl_Position =
- ubo.proj *
- ubo.view *
- ubo.model *
- instPosRotScale *
- vec4(inPosition, 1.0);
- fragColor = vec4(0.0, 0.0, 0.0, 0.0);
- fragTexCoord = vec3(inUV, 0);
-}