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:
@ -13,4 +13,17 @@ Generates an ellipse shape based on input UV at the size specified by inputs <b>
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|output|float|None|Output ellipse value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Procedural/Shapes/Ellipse.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`float ellipse_shape(vec2 uv, float width, float height)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|width|float|Ellipse width|
|
||||
|height|float|Ellipse height|
|
||||
___
|
@ -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|
|
||||
___
|
@ -13,4 +13,17 @@ Generates a rectangle shape based on input UV at the size specified by inputs <b
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|output|float|None|Output rectangle value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Procedural/Shapes/Rectangle.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`float rectangle_shape(vec2 uv, float width, float height)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|width|float|Rectangle width|
|
||||
|height|float|Rectangle height|
|
||||
___
|
@ -15,4 +15,19 @@ Generates a rounded polygon shape based on input UV at the size specified by inp
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|output|float|None|Output rounded polygon value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Procedural/Shapes/RoundedPolygon.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`float rounded_polygon_shape(vec2 uv, float width, float height, float sides, float roundness)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|width|float|Ellipse width|
|
||||
|height|float|Ellipse height|
|
||||
|sides|float|Number of sides of the polygon|
|
||||
|roundness|float|Corner radius|
|
||||
___
|
@ -14,4 +14,18 @@ Generates a rounded rectangle shape based on input UV at the size specified by i
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|output|float|None|Output rounded rectangle value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Procedural/Shapes/RoundedRectangle.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`float rounded_rectangle_shape(vec2 uv, float width, float height, float radius)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|width|float|Rectangle width|
|
||||
|height|float|Rectangle height|
|
||||
|radius|float|Corner radius|
|
||||
___
|
Reference in New Issue
Block a user