Fix in world.

This commit is contained in:
Godzil
2020-02-20 00:47:02 +00:00
parent dbaa6eea2c
commit aa078f4d46

View File

@@ -83,9 +83,9 @@ Intersect World::intersect(Ray r)
{ {
Intersect xs = this->objectList[i]->intersect(r); Intersect xs = this->objectList[i]->intersect(r);
for(j = 0; xs.count(); j++) for(j = 0; j < xs.count(); j++)
{ {
ret.add(xs[i]); ret.add(xs[j]);
} }
} }