Копия проекта с 02

This commit is contained in:
2022-07-26 13:13:30 +03:00
parent da9a3ffde7
commit 19990e877b
9 changed files with 567 additions and 0 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;
}