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

This commit is contained in:
2022-08-04 11:39:56 +03:00
parent 3b5808973c
commit 77c018f86c
15 changed files with 1334 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);
}

11
shaders/shader.vert Normal file
View File

@@ -0,0 +1,11 @@
#version 330 core
layout(location = 0) in vec3 pos;
uniform mat4 vp;
uniform mat4 model;
void main()
{
gl_Position = vp * model * vec4(pos, 1.0);
}