diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-03-05 00:06:25 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-03-05 00:06:25 +0100 |
| commit | 2218ad410c01c8e3ea8416dd019d0c3072fbb1cf (patch) | |
| tree | c7a9db529253265db65942d3981273fbe7678ed5 /shaders/ui.frag | |
| parent | 4460f6d85730cb630dda4be2ebe47fcf13478d58 (diff) | |
Fix imgui vertices rendering
Diffstat (limited to 'shaders/ui.frag')
| -rw-r--r-- | shaders/ui.frag | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/shaders/ui.frag b/shaders/ui.frag index e5a6aa3..99534aa 100644 --- a/shaders/ui.frag +++ b/shaders/ui.frag @@ -1,5 +1,12 @@ layout(location = 0) out vec4 o_Color;
+layout(location = 0) in struct {
+ vec2 uv;
+ vec4 color;
+} In;
+
+// layout(set = 0, binding = 1) uniform sampler2D atlas;
+
void main() {
- o_Color = vec4(1.0, 0.0, 0.0, 1.0);
+ o_Color = In.color; // * texture(atlas, In.uv.xy);
}
|
