mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 12:25:59 +08:00
Procedural nodes documentation updated
This commit is contained in:
@ -14,4 +14,18 @@ Generates a regular polygon shape based on input UV at the size specified by inp
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|output|float|None|Output polygon value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Procedural/Shapes/Polygon.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`float polygon_shape(vec2 uv, int sides, float width, float height)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|sides|int|Number of sides of the polygon|
|
||||
|width|float|Polygon width|
|
||||
|height|float|Polygon height|
|
||||
___
|
Reference in New Issue
Block a user