Update
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 1s

This commit is contained in:
Florian RICHER 2024-11-24 19:24:28 +01:00
parent c0367144a6
commit dd8a5a97ea
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
9 changed files with 83 additions and 13 deletions

10
res/shaders/vertex.frag Normal file
View file

@ -0,0 +1,10 @@
#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);
}

1
res/shaders/vertex.vert Normal file
View file

@ -0,0 +1 @@
#version 450 #extension GL_ARB_separate_shader_objects: enable // NOTE: names must match the `Vertex` struct in Rust layout (location = 0) in vec2 pos; layout (location = 1) in vec3 color; layout (location = 0) out vec3 fragColor; out gl_PerVertex { vec4 gl_Position; }; void main() { gl_Position = vec4(pos, 0.0, 1.0); fragColor = color; }