LesDingeriesDeDjalimSurOpenGL/assets/shaders/fragment.glsl
Djalim Simaila 430b1fb364 ♻️ (engine, Mesh3D): refactor 3D object handling
- Introduce Mesh3D class with vertices, texture, VBO/VAO.
- Replace Object3D struct and textures map in engine with Mesh3D objects.
- Update createObject to load from file path instead of vertex array.
- Adjust cube rendering to use new vertex count.
- Remove debug prints from Texture2D loading.
- Toggle fragment shader color vs texture usage.
2025-10-24 07:58:20 +02:00

12 lines
199 B
GLSL

#version 330 core
out vec4 FragColor;
in vec2 TexCoord;
uniform sampler2D ourTexture;
void main()
{
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
//FragColor = texture(ourTexture, TexCoord);
}