initial commit
This commit is contained in:
7
tests/shaders/frag1.glsl
Normal file
7
tests/shaders/frag1.glsl
Normal file
@@ -0,0 +1,7 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) out vec4 f_color;
|
||||
|
||||
void main() {
|
||||
f_color = vec4(0.0, 0.5, 1.0, 1.0);
|
||||
}
|
||||
13
tests/shaders/frag2.glsl
Normal file
13
tests/shaders/frag2.glsl
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec4 cool;
|
||||
layout(location = 1) in vec2 yep;
|
||||
layout(location = 2) in float monkey;
|
||||
layout(location = 0) out vec4 f_color;
|
||||
|
||||
void main() {
|
||||
vec4 t = cool;
|
||||
t.yw += yep;
|
||||
t.x -= monkey;
|
||||
f_color = t;
|
||||
}
|
||||
10
tests/shaders/vert1.glsl
Normal file
10
tests/shaders/vert1.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 position;
|
||||
|
||||
void main() {
|
||||
vec2 p = position;
|
||||
p.x += 0.2;
|
||||
gl_Position = vec4(p, 0.0, 1.0);
|
||||
}
|
||||
|
||||
14
tests/shaders/vert2.glsl
Normal file
14
tests/shaders/vert2.glsl
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 position;
|
||||
layout(location = 0) out vec4 cool;
|
||||
layout(location = 1) out vec2 yep;
|
||||
layout(location = 2) out float monkey;
|
||||
|
||||
void main() {
|
||||
cool = vec4(0.0, 0.5, 1.0, 1.0);
|
||||
yep = position;
|
||||
monkey = 0.9;
|
||||
gl_Position = vec4(yep, 0.0, 1.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user