impl: 3D Rendering
This commit is contained in:
parent
dbf9544e80
commit
70176bb86a
18 changed files with 862 additions and 185 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue