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

This commit is contained in:
2022-11-14 20:24:58 +03:00
parent ebc18f9d4d
commit 290f609dce
19 changed files with 1862 additions and 0 deletions

13
shaders/shader.frag Normal file
View File

@@ -0,0 +1,13 @@
#version 330 core
in vec2 texCoord;
uniform sampler2D tex_diffuse;
out vec4 color;
void main()
{
color = texture(tex_diffuse, texCoord);
}

21
shaders/shader.vert Normal file
View File

@@ -0,0 +1,21 @@
#version 420 core
layout(location = 0) in vec3 pos;
layout(location = 1) in vec2 inTexCoord;
layout(location = 2) in vec3 normals;
layout(std140, binding = 0) uniform Camera
{
mat4 projection;
mat4 view;
};
uniform mat4 model;
out vec2 texCoord;
void main()
{
gl_Position = projection * view * model * vec4(pos, 1.0);
texCoord = inTexCoord;
}