Added shaders
This commit is contained in:
7
shaders/frag.frag
Normal file
7
shaders/frag.frag
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#version 450
|
||||||
|
layout(location = 0) out vec4 outColor;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
outColor = vec4(1.0, 0.0, 0.0, 1.0); // red
|
||||||
|
}
|
||||||
BIN
shaders/frag.spv
Normal file
BIN
shaders/frag.spv
Normal file
Binary file not shown.
BIN
shaders/vert.spv
Normal file
BIN
shaders/vert.spv
Normal file
Binary file not shown.
13
shaders/vert.vert
Normal file
13
shaders/vert.vert
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#version 450
|
||||||
|
|
||||||
|
vec2 positions[3] = vec2[]
|
||||||
|
(
|
||||||
|
vec2(0.0, -0.5),
|
||||||
|
vec2(0.5, 0.5),
|
||||||
|
vec2(-0.5, 0.5)
|
||||||
|
);
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user