Skip to content

Instantly share code, notes, and snippets.

@michlimlim
Created November 18, 2021 16:50
Show Gist options
  • Save michlimlim/9cbdcea87c524e6fe70b7c049f61b63f to your computer and use it in GitHub Desktop.
Save michlimlim/9cbdcea87c524e6fe70b7c049f61b63f to your computer and use it in GitHub Desktop.
antialiasing
if (corner_radius > 0) {
color.a *= 1.0 - smoothstep(-0.75, -0.1, shape_distance);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment