1
0
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:
Digvijaysinh Gohil
2024-04-15 22:50:04 +05:30
parent 8a036a2abf
commit 2dadda73fc
11 changed files with 156 additions and 0 deletions

View File

@ -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|
___