Компиляция шейдеров

This commit is contained in:
2022-07-18 15:25:33 +03:00
parent 16c8de749f
commit eb898b21ad
3 changed files with 126 additions and 4 deletions

8
shaders/shader.frag Normal file
View File

@@ -0,0 +1,8 @@
#version 330 core
out vec3 color;
void main()
{
color = vec3(1, 0, 0);
}

9
shaders/shader.vert Normal file
View File

@@ -0,0 +1,9 @@
#version 330 core
layout(location = 0) in vec3 pos;
void main()
{
gl_Position.xyz = pos;
gl_Position.w = 1.0;
}