Fix cylinder rendering
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 22:03:25 +0000 (23:03 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 22:03:25 +0000 (23:03 +0100)
commit225a26a04c247f67c7bb1d90f905c74ca51b006a
tree45c24a23d93d84607a2af0e1cc6854fc319daa6b
parent317693b4aebb4a8918181985efc5b6a55c912cb4
Fix cylinder rendering

I thought that the ray forms and acute angle with a vector from
point of entry to cylinder center, but that was not true.
Instead the projections to the plane orthogonal the rotational axis have
this property. So in this commit I implement the test for it.
src/scene.c