impl: 3D Rendering

This commit is contained in:
zack 2025-04-01 21:41:24 -04:00
parent dbf9544e80
commit 70176bb86a
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
18 changed files with 862 additions and 185 deletions

View file

@ -1,7 +1,16 @@
#version 450
// Input from vertex shader
layout(location = 0) in vec3 fragColor;
// layout(location = 1) in vec2 fragTexCoord; // If using textures
// Output color
layout(location = 0) out vec4 outColor;
// layout(binding = 1) uniform sampler2D texSampler; // If using textures
void main() {
outColor = vec4(1.0, 0.5, 0.0, 1.0); // Orange
// Use interpolated color
outColor = vec4(fragColor, 1.0);
// outColor = texture(texSampler, fragTexCoord); // If using textures
}