Added texture and fixed a bunch of stuff.

This commit is contained in:
2024-09-15 10:42:54 +02:00
parent 9095c7e99a
commit 4ad274d637
13 changed files with 640 additions and 43 deletions

BIN
assets/bitmaps/sdl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -0,0 +1,21 @@
#version 460
layout(set = 2, binding = 0)
uniform sampler2D u_texture;
layout(set = 3, binding = 0)
uniform Parameters
{
vec4 u_color;
};
layout(location = 0)
in vec2 i_texCoord;
layout(location = 0)
out vec4 o_color;
void main()
{
o_color = texture(u_texture, i_texCoord) * u_color;
}