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/Noise/Voronoi.md
2024-09-29 23:42:44 +05:30

1.5 KiB

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 angle offset, a cluster of cells can be generated.


Controls

Name Options Description
Distance Euclidean, Manhattan, Chebyshev Distance matrix used to calculate the noise

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
chebyshev power float none Power values for Chebyshev distance matrix

Outputs

Name Type Binding Description
output float None Output noise value
cells float None Raw cell data

ShaderInc location
res://addons/ShaderLib/Procedural/Procedural.gdshaderinc

Method signature
float voronoi_noise_euclidean(vec2 uv, float cell_density, float angle_offset, out float cells)
float voronoi_noise_manhattan(vec2 uv, float cell_density, float angle_offset, out float cells)
float voronoi_noise_chebyshev(vec2 uv, float cell_density, float angle_offset, float chebyshev_power, out float cells)

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