Starting Out

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2024-12-09 12:51:29 +02:00
parent 7e6be94c65
commit 4ec57bbd79
47 changed files with 2069 additions and 0 deletions

9
shaders/tri.frag Normal file
View File

@@ -0,0 +1,9 @@
#version 450
#pragma shader_stage(fragment)
layout(location = 0) out vec4 outColor;
void main() {
outColor = vec4(0.f, 1.f, 0.f, 1.f);
}

15
shaders/tri.vert Normal file
View File

@@ -0,0 +1,15 @@
#version 450
#pragma shader_stage(vertex)
vec2 positions[3] = vec2[](
vec2(0.0, -0.5),
vec2(0.5, 0.5),
vec2(-0.5, 0.5)
);
// in layout(location=0) vec2 position;
void main() {
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
// gl_Position = vec4(position, 0.0, 1.0);
}