1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 03:55:59 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Procedural/Shapes/RoundedPolygon.md
Digvijaysinh Gohil e73385e903 Documentation overhaul
2024-02-26 22:13:45 +05:30

1.1 KiB

Rounded Polygon node

Generates a rounded polygon shape based on input UV at the size specified by inputs width and height. The polygon's amount of sides is determined by input sides. The radius of each corner is defined by input roundnesss. The generated shape can be offset or tiled by connecting a TilingAndOffset node. Note that in order to preserve the ability to offset the shape within the UV space the shape will not automatically repeat if tiled. To achieve a repeating rounded polygon effect first connect your TilingAndOffset output through a Fract node.


Inputs

Name Type Binding Description
uv vec2 UV Input UV value
width float none Rounded polygon width
height float none Rounded polygon height
sides int none Number of sides of the polygon
roundness float none Corner radius

Outputs

Name Type Binding Description
output float None Output rounded polygon value