diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
commit | 0353181306702c40ad0fe482b5c2b159b46794a4 (patch) | |
tree | 33acc6a9e8ea4705884cf93b78cf869008f71832 /stockton-render/src/data/ui.frag | |
parent | 664f0b0777ba96298b29f0c753d52a81cbb233f1 (diff) |
refactor(all): rename some crates
Diffstat (limited to 'stockton-render/src/data/ui.frag')
-rw-r--r-- | stockton-render/src/data/ui.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/stockton-render/src/data/ui.frag b/stockton-render/src/data/ui.frag new file mode 100644 index 0000000..c30c99e --- /dev/null +++ b/stockton-render/src/data/ui.frag @@ -0,0 +1,15 @@ +#version 450 +#extension GL_ARB_separate_shader_objects : enable + +// DescriptorSet 0 = Textures +layout(set = 0, binding = 0) uniform texture2D tex[8]; +layout(set = 0, binding = 1) uniform sampler samp[8]; + +layout (location = 1) in vec2 frag_uv; +layout (location = 2) in vec4 frag_col; + +layout (location = 0) out vec4 color; + +void main() { + color = texture(sampler2D(tex[0], samp[0]), frag_uv) * frag_col; +}
\ No newline at end of file |