From 154436ab88925540f86f43c0ac885c080949aa9b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 19 Aug 2025 13:51:40 -0400 Subject: pke: ui box type button image --- assets/shaders/ui-txtr.frag | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 assets/shaders/ui-txtr.frag (limited to 'assets/shaders/ui-txtr.frag') diff --git a/assets/shaders/ui-txtr.frag b/assets/shaders/ui-txtr.frag new file mode 100644 index 0000000..5ca55ba --- /dev/null +++ b/assets/shaders/ui-txtr.frag @@ -0,0 +1,15 @@ +# version 450 + +// layout(location = 0) in vec4 in_border_color; +// layout(location = 1) in vec4 in_background_color; +// layout(location = 2) in vec2 in_px_scale; +layout(location = 3) in vec3 in_uv; + +layout(location = 0) out vec4 out_color; + +layout(binding = 0) uniform sampler2DArray texture_sampler; + +void main() { + vec4 color = texture(texture_sampler, in_uv.xyz); + out_color = color; +} -- cgit v1.2.3