Adding shadows!

This commit is contained in:
Godzil
2020-02-20 17:46:03 +00:00
parent 5198888df6
commit cf5597ad6d
11 changed files with 145 additions and 24 deletions

View File

@@ -22,11 +22,13 @@ Computation Intersection::prepareComputation(Ray r)
normalV = -normalV;
}
Tuple overHitP = hitP + normalV * getEpsilon();
return Computation(this->object,
this->t,
hitP,
eyeV,
normalV,
overHitP,
inside);
}