2025-03-28 16:33:40 -04:00
|
|
|
#version 450
|
|
|
|
|
|
2025-04-01 21:41:24 -04:00
|
|
|
// Input from vertex shader
|
|
|
|
|
layout(location = 0) in vec3 fragColor;
|
|
|
|
|
// layout(location = 1) in vec2 fragTexCoord; // If using textures
|
|
|
|
|
|
|
|
|
|
// Output color
|
2025-03-28 16:33:40 -04:00
|
|
|
layout(location = 0) out vec4 outColor;
|
|
|
|
|
|
2025-04-01 21:41:24 -04:00
|
|
|
// layout(binding = 1) uniform sampler2D texSampler; // If using textures
|
|
|
|
|
|
2025-03-28 16:33:40 -04:00
|
|
|
void main() {
|
2025-04-01 21:41:24 -04:00
|
|
|
// Use interpolated color
|
|
|
|
|
outColor = vec4(fragColor, 1.0);
|
|
|
|
|
// outColor = texture(texSampler, fragTexCoord); // If using textures
|
2025-03-28 16:33:40 -04:00
|
|
|
}
|