Add shader for texture handling

This commit is contained in:
2024-07-04 16:57:30 +02:00
parent 471786d18e
commit 6cb776587a
4 changed files with 256 additions and 183 deletions

View File

@@ -0,0 +1,11 @@
#version 450
layout(location = 0) in vec4 color;
layout(location = 1) in vec2 texCoord;
layout(location = 0) out vec4 outColor;
layout(set = 2, binding = 0) uniform sampler2D texSampler;
void main()
{
outColor = texture(texSampler, texCoord);
}