diff --git a/source/intersection.cpp b/source/intersection.cpp index f1d6c16..9cc7cec 100644 --- a/source/intersection.cpp +++ b/source/intersection.cpp @@ -14,7 +14,7 @@ Computation Intersection::prepareComputation(Ray r) Tuple hitP = r.position(this->t); Tuple normalV = this->object->normalAt(hitP); Tuple eyeV = -r.direction; - bool inside; + bool inside = false; if (normalV.dot(eyeV) < 0) {