mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-05 00:53:36 +08:00
Update Voronoi.gdshaderinc
This commit is contained in:
parent
de8d5e472e
commit
55039f4c6b
@ -27,7 +27,7 @@ void voronoi_noise(vec2 uv, float cell_density, float angle_offset, int distance
|
||||
for(float x = -1.; x <= 1.; x++) {
|
||||
vec2 offset = vec2(x, y);
|
||||
vec2 n = voronoi_random_vector(grid_id + offset);
|
||||
vec2 p = offset + sin(n + angle_offset) * .5 + .5;
|
||||
vec2 p = offset + vec2(sin(n.x + angle_offset) * .5 + .5, cos(n.y + angle_offset) * .5 + .5);
|
||||
float d = min_dist;
|
||||
|
||||
switch(distance_index){
|
||||
|
Loading…
x
Reference in New Issue
Block a user