Merge branch 'master' of git.cg.cs.tu-bs.de:CG1_WS2223/group_12

This commit is contained in:
Maximilian Giller 2022-11-17 17:43:14 +01:00
commit e20d852d53
2 changed files with 4 additions and 4 deletions

View file

@ -101,7 +101,7 @@ bool Triangle::intersect(Ray &ray) const {
return false;
// Calculate the normal
// IMPLEMENT ME
ray.normal = crossProduct(edge1, edge1);
// Calculate the surface position
ray.surface = u * this->surface[1] + v * this->surface[2] + (1 - u - v) * this->surface[0];