diff --git a/bevy_kayak_ui/src/render/unified/shader.wgsl b/bevy_kayak_ui/src/render/unified/shader.wgsl index f1aad19403bd159bf3d8e060c8b78423eb7ff688..b43867e2662cb4a946bb4e94ddddbde284304843 100644 --- a/bevy_kayak_ui/src/render/unified/shader.wgsl +++ b/bevy_kayak_ui/src/render/unified/shader.wgsl @@ -51,6 +51,7 @@ var image_sampler: sampler; let RADIUS: f32 = 0.1; +// Where P is the position in pixel space, B is the size of the box adn R is the radius of the current corner. fn sdRoundBox(p: vec2<f32>, b: vec2<f32>, r: f32) -> f32 { var q = abs(p)-b+r;