This commit is contained in:
2023-12-14 10:05:03 -05:00
commit 1d23169dcc
16 changed files with 3798 additions and 0 deletions

12
src/shaders/tri.frag Normal file
View File

@ -0,0 +1,12 @@
#version 450
#extension GL_ARB_separate_shader_objects: enable
layout (location = 0) in vec3 fragColor;
layout (location = 0) out vec4 outColor;
void main() {
outColor = vec4(fragColor, 1.0);
}

18
src/shaders/tri.vert Normal file
View File

@ -0,0 +1,18 @@
#version 450
#extension GL_ARB_separate_shader_objects: enable
layout (location = 0) in vec2 inPosition;
layout (location = 1) in vec3 inColor;
layout (location = 0) out vec3 fragColor;
out gl_PerVertex {
vec4 gl_Position;
};
void main() {
gl_Position = vec4(inPosition, 0.0, 1.0);
fragColor = inColor;
}