Change plane light diffusion
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 26 Nov 2024 19:10:26 +0000 (20:10 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Tue, 26 Nov 2024 19:10:26 +0000 (20:10 +0100)
commit25d1f45db598c331358f4da3d3c521bcf43a7cd4
tree9839552c02fd12ade13a757e78b17ee931d2cc0d
parenta8bc305a20981167763e6d13aa5afde896aebd81
Change plane light diffusion

In the previous commit I noted that plane may not interact with light,
if the normal has the wrong sign. This commit changes but now a plane is
illuminated through itself - it diffuses light that is on the other side
than the camera.
This could be excused arguing that it is an infinitely thin piece so it
should emit light on both sides, but I would rather it would only
emit light on the side it is illuminated on.
src/scene.c