2024-02-26 22:13:45 +05:30
# Voronoi node
Generates a Voronoi or Worley noise based on input UV. Voronoi noise is generated by calculating distances between a pixel and a lattice of points. By offsetting these points by a pseudo-random number, controlled by < b > < i > angle offset< / i > < / b > , a cluster of cells can be generated.
< hr >
2024-03-19 13:03:56 +05:30
**Controls**
|Name|Options|Description|
|---|---|---|
|Distance|Euclidean, Manhattan, Chebyshev|Distance matrix used to calculate the noise|
2024-02-26 22:13:45 +05:30
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|uv|vec2|UV|Input UV value|
|cell density|float|none|Density of generated cells|
|angle offset|float|none|Offset values for points|
2024-03-19 13:03:56 +05:30
|chebyshev power|float|none|Power values for Chebyshev distance matrix|
2024-02-26 22:13:45 +05:30
**Outputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|output|float|None|Output noise value|
|cells|float|None|Raw cell data|
2024-04-15 22:50:04 +05:30
**ShaderInc location**
2024-07-21 16:39:45 +05:30
< br > `res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
2024-04-15 22:50:04 +05:30
**Method signature**
2024-09-29 23:42:44 +05:30
< br > `float voronoi_noise_euclidean(vec2 uv, float cell_density, float angle_offset, out float cells)`
< br > `float voronoi_noise_manhattan(vec2 uv, float cell_density, float angle_offset, out float cells)`
< br > `float voronoi_noise_chebyshev(vec2 uv, float cell_density, float angle_offset, float chebyshev_power, out float cells)`
2024-04-15 22:50:04 +05:30
**Parameters**
|Name|Type|Description|
|---|---|---|
|uv|vec2|Input UV value|
|cell_density|float|Density of generated cells|
|angle_offset|float|Offset values for points|
|chebyshev_power|float|Power for Chebyshev distance|
|cells|out float|Output raw cell data|
2024-02-26 22:13:45 +05:30
___