Fix not rendering the inside of objects correctly
authorLukas Jiriste <ljiriste@student.42prague.com>
Sat, 4 Jan 2025 12:36:28 +0000 (13:36 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sat, 4 Jan 2025 12:36:28 +0000 (13:36 +0100)
commit71d73f569cee651b91c5ac794c6c36a02ef02130
treeca944f31427fa3d38f4275e5d39085f905f630f6
parenta0f1988520de520f5ebacdca097a14602756cd4b
Fix not rendering the inside of objects correctly

The optimization of seeing whether the circumsphere would interact with
a ray contains a check for whether the circumsphere CENTER is behind the
ray origin instead of its furthest point. This is now rectified which
fixes the rendering when inside an object.
src/scene.c