Start at 0

This commit is contained in:
Mylloon 2022-05-17 22:02:06 +02:00
parent e9fdf2697f
commit d8608bc7b1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -14,7 +14,7 @@ void main(void) {
float dmin = distance(vsoTexCoord, coords[0]); float dmin = distance(vsoTexCoord, coords[0]);
int imin = 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]); float d = distance(vsoTexCoord, coords[i]);
if(d < dmin) { if(d < dmin) {
imin = i; imin = i;