feat: add imgui library & primitive shapes

This commit is contained in:
2025-12-30 12:01:31 +01:00
parent 8f4eb04b2d
commit 03c8f77029
5 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#version 330 core
out vec4 FragColor;
struct Material
{
sampler2D diffuse;
vec3 specular;
float shininess;
};
struct Light
{
vec3 position;
vec3 ambient;
vec3 diffuse;
vec3 specular;
};
in vec3 FragPos;
in vec3 Normal;
in vec2 TexCoords;
uniform vec3 viewPos;
uniform Material material;
uniform Light light;
void main()
{
vec4 texColor = texture(material.diffuse , TexCoords);
FragColor = texColor;
}