#import bevy_render::{ view::View, globals::Globals, } #import bevy_ui::ui_vertex_output::UiVertexOutput @group(0) @binding(0) var view: View; @group(0) @binding(1) var globals: Globals; @vertex fn vertex( @location(0) vertex_position: vec3, @location(1) vertex_uv: vec2, @location(2) size: vec2, @location(3) border_widths: vec4, @location(4) border_radius: vec4, ) -> UiVertexOutput { var out: UiVertexOutput; out.uv = vertex_uv; out.position = view.clip_from_world * vec4(vertex_position, 1.0); out.size = size; out.border_widths = border_widths; out.border_radius = border_radius; return out; } @fragment fn fragment(in: UiVertexOutput) -> @location(0) vec4 { return vec4(1.0); }