aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/ui/data/stockton.frag
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/ui/data/stockton.frag')
-rw-r--r--stockton-render/src/draw/ui/data/stockton.frag11
1 files changed, 9 insertions, 2 deletions
diff --git a/stockton-render/src/draw/ui/data/stockton.frag b/stockton-render/src/draw/ui/data/stockton.frag
index 1a85ab6..e5b2b4d 100644
--- a/stockton-render/src/draw/ui/data/stockton.frag
+++ b/stockton-render/src/draw/ui/data/stockton.frag
@@ -1,8 +1,15 @@
#version 450
#extension GL_ARB_separate_shader_objects : enable
-layout(location = 0) out vec4 outColor;
+// 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 flat int frag_col;
+
+layout (location = 0) out vec4 color;
void main() {
- outColor = vec4(1.0, 0.0, 0.0, 1.0);
+ color = texture(sampler2D(tex[0], samp[0]), frag_uv);
} \ No newline at end of file