diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-19 13:51:40 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-19 14:33:08 -0400 |
| commit | 154436ab88925540f86f43c0ac885c080949aa9b (patch) | |
| tree | 43a22f26286428f0d165fc1ff801cd0cb87092c6 /assets/shaders/ui-txtr.frag | |
| parent | ebcae77b137a759c453b89a774ece5a755078a38 (diff) | |
pke: ui box type button image
Diffstat (limited to 'assets/shaders/ui-txtr.frag')
| -rw-r--r-- | assets/shaders/ui-txtr.frag | 15 |
1 files changed, 15 insertions, 0 deletions
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; +} |
