Smooth triangles! And support for them in the OBJ File parser.
Also add an interesting tea party scene!
This commit is contained in:
@@ -60,7 +60,7 @@ void Intersect::add(Intersection i)
|
||||
this->list = (Intersection **)realloc(this->list, sizeof(Intersection *) * this->allocated);
|
||||
}
|
||||
|
||||
this->list[this->num++] = new Intersection(i.t, i.object);
|
||||
this->list[this->num++] = new Intersection(i.t, i.object, i.u, i.v);
|
||||
|
||||
stats.setMaxIntersect(this->num);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user