Skip to content
Snippets Groups Projects
Commit ae841338 authored by StarArawn's avatar StarArawn
Browse files

Added a comment.

parent 847229b4
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ var image_sampler: sampler; ...@@ -51,6 +51,7 @@ var image_sampler: sampler;
let RADIUS: f32 = 0.1; 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 fn sdRoundBox(p: vec2<f32>, b: vec2<f32>, r: f32) -> f32
{ {
var q = abs(p)-b+r; var q = abs(p)-b+r;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment