Image is projected onto the sqaure now

This commit is contained in:
Ano-sys
2025-04-05 15:04:30 +02:00
parent 881a43177e
commit 6d986f496e
4 changed files with 60 additions and 37 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
#version 450
layout(location = 0) in vec3 fragColor;
layout(location = 1) in vec2 fragTexCoord;
layout(location = 0) out vec4 outColor;
layout(binding = 1) uniform sampler2D texSampler;
void main(){
outColor = vec4(fragColor, 1.0);
// outColor = vec4(fragTexCoord, 0.0, 1.0);
outColor = texture(texSampler, fragTexCoord);
}