mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-07 20:16:08 +01:00
feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first
This commit is contained in:
18
shaders/vk14/imgui.frag
Normal file
18
shaders/vk14/imgui.frag
Normal file
@@ -0,0 +1,18 @@
|
||||
#version 460 core
|
||||
#define STAGE_FRAGMENT 1
|
||||
// the user interface (imgui): the colour of the vertices times the texture of the draw (the font, an image, a texture), pushed
|
||||
// with the draw
|
||||
|
||||
#include "common.glsl"
|
||||
|
||||
layout(location = 0) in vec2 f_uv;
|
||||
layout(location = 1) in vec4 f_colour;
|
||||
|
||||
layout(set = UI_SET, binding = UI_TEXTURE) uniform sampler2D ui_texture;
|
||||
|
||||
layout(location = 0) out vec4 out_colour;
|
||||
|
||||
void main()
|
||||
{
|
||||
out_colour = FBOUT(f_colour * texture(ui_texture, f_uv));
|
||||
}
|
||||
Reference in New Issue
Block a user