Skip to content

Commit

Permalink
Merge pull request #24 from paddy-exe/fix-circle-shape
Browse files Browse the repository at this point in the history
Fix Circle Shape Function and update to 4.2
  • Loading branch information
paddy-exe authored Dec 18, 2023
2 parents c1fc8a9 + 9fab260 commit 1335f2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ShaderFunction-Extras/Shapes/shapes.gdshaderinc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ float polygon(vec2 uv, float width, int sides) {
}

float circle(vec2 uv, float radius, float feather) {
return smoothstep(radius, radius + feather, dot(position, position) * 4.0);
return smoothstep(radius, radius + feather, dot(uv, uv) * 4.0);
}

float square(vec2 uv, float width) {
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ config_version=5
[application]

config/name="ShaderFunction-Extras"
config/features=PackedStringArray("4.0", "Forward Plus")
config/features=PackedStringArray("4.2", "Forward Plus")
config/icon="res://addons/ShaderFunction-Extras/ShaderFunction-Logo.svg"

0 comments on commit 1335f2b

Please sign in to comment.