Start at 0
This commit is contained in:
parent
e9fdf2697f
commit
d8608bc7b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue