Final product
This commit is contained in:
commit
f72f90bcca
34 changed files with 3161 additions and 0 deletions
11
res/shaders/gradient/frag.gls
Normal file
11
res/shaders/gradient/frag.gls
Normal file
|
@ -0,0 +1,11 @@
|
|||
#version 330 core
|
||||
|
||||
uniform vec4 input_color;
|
||||
|
||||
in float value;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = input_color * vec4(value, value, value, 1);
|
||||
}
|
13
res/shaders/gradient/vert.gls
Normal file
13
res/shaders/gradient/vert.gls
Normal file
|
@ -0,0 +1,13 @@
|
|||
#version 330 core
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
layout (location = 0) in vec3 vertices;
|
||||
layout (location = 1) in float in_value;
|
||||
|
||||
out float value;
|
||||
|
||||
void main() {
|
||||
value = in_value;
|
||||
gl_Position = mvp * vec4(vertices, 1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue