From 0d54a4970bd5ea310f36339eb5ab00d3b380592d Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:09:09 -0600 Subject: [PATCH] add flat interpolate attribute --- crates/bevy_ui/src/render/ui.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ui/src/render/ui.wgsl b/crates/bevy_ui/src/render/ui.wgsl index 389bfcd1c5a30..2eeb825da2c00 100644 --- a/crates/bevy_ui/src/render/ui.wgsl +++ b/crates/bevy_ui/src/render/ui.wgsl @@ -8,7 +8,7 @@ var view: View; struct VertexOutput { @location(0) uv: vec2, @location(1) color: vec4, - @location(3) mode: u32, + @location(3) @interpolate(flat) mode: u32, @builtin(position) position: vec4, }; @@ -39,7 +39,7 @@ fn fragment(in: VertexOutput) -> @location(0) vec4 { if in.mode == TEXTURED_QUAD { color = in.color * color; } else { - color = in.color; + color = in.color; } return color; }