From ae8413381dc20b3eb6e18431a92247a116b76eee Mon Sep 17 00:00:00 2001
From: StarArawn <toasterthegamer@gmail.com>
Date: Sun, 30 Jan 2022 14:06:00 -0500
Subject: [PATCH] Added a comment.

---
 bevy_kayak_ui/src/render/unified/shader.wgsl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bevy_kayak_ui/src/render/unified/shader.wgsl b/bevy_kayak_ui/src/render/unified/shader.wgsl
index f1aad19..b43867e 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;
-- 
GitLab