Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Forks
Kayak UI
Commits
ae841338
Commit
ae841338
authored
3 years ago
by
StarArawn
Browse files
Options
Downloads
Patches
Plain Diff
Added a comment.
parent
847229b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bevy_kayak_ui/src/render/unified/shader.wgsl
+1
-0
1 addition, 0 deletions
bevy_kayak_ui/src/render/unified/shader.wgsl
with
1 addition
and
0 deletions
bevy_kayak_ui/src/render/unified/shader.wgsl
+
1
−
0
View file @
ae841338
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment