Added texture and fixed a bunch of stuff.
This commit is contained in:
BIN
assets/bitmaps/sdl.png
Normal file
BIN
assets/bitmaps/sdl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
21
assets/shaders/glsl/color_from_texture.frag
Normal file
21
assets/shaders/glsl/color_from_texture.frag
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user