From d8608bc7b1a8b7dd4bc67b55abc14818033fab32 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 17 May 2022 22:02:06 +0200 Subject: [PATCH] Start at 0 --- shaders/voronoi.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/voronoi.fs b/shaders/voronoi.fs index 9ffbd7d..33779f7 100644 --- a/shaders/voronoi.fs +++ b/shaders/voronoi.fs @@ -14,7 +14,7 @@ void main(void) { float dmin = distance(vsoTexCoord, coords[0]); int imin = 0; - for(int i = 1; i < nb_sites; i++) { + for(int i = 0; i < nb_sites; i++) { float d = distance(vsoTexCoord, coords[i]); if(d < dmin) { imin = i;