From 5e910c7e41d18dab95e34ceb6e620a8958197ae6 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 16 Oct 2023 23:46:15 +0300 Subject: things done --- files/shaders/shader1.frag | 7 +++++++ files/shaders/shader1.vert | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 files/shaders/shader1.frag create mode 100644 files/shaders/shader1.vert (limited to 'files') diff --git a/files/shaders/shader1.frag b/files/shaders/shader1.frag new file mode 100644 index 0000000..f30417b --- /dev/null +++ b/files/shaders/shader1.frag @@ -0,0 +1,7 @@ +#version 450 + +layout (location = 0) out vec4 outColor; + +void main() { + outColor = vec4(1.0, 0.0, 0.0, 1.0); +} diff --git a/files/shaders/shader1.vert b/files/shaders/shader1.vert new file mode 100644 index 0000000..c5d117f --- /dev/null +++ b/files/shaders/shader1.vert @@ -0,0 +1,10 @@ +#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); +} -- cgit v1.2.3