From 55039f4c6bd9ce184f52a8638faee9cca6d38f26 Mon Sep 17 00:00:00 2001 From: Digvijaysinh Gohil Date: Tue, 19 Mar 2024 18:40:25 +0530 Subject: [PATCH] Update Voronoi.gdshaderinc --- addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc b/addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc index 2a2c046..818d4d2 100644 --- a/addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc +++ b/addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc @@ -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){