Triangle shaders and pipeline

This commit is contained in:
nothke
2024-06-11 02:19:48 +02:00
parent 2135613c49
commit baca95edea
3 changed files with 592 additions and 1 deletions

22
src/shaders/triangle.glsl Normal file
View File

@@ -0,0 +1,22 @@
@vs vs
in vec4 position;
in vec4 color0;
out vec4 color;
void main() {
gl_Position = position;
color = color0;
}
@end
@fs fs
in vec4 color;
out vec4 frag_color;
void main() {
frag_color = color;
}
@end
@program triangle vs fs