Fix "translucence" of surfaces
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 Jan 2025 13:17:58 +0000 (14:17 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 Jan 2025 13:17:58 +0000 (14:17 +0100)
commit59b96f25f0d8e277c4f5267d923056a37baa302e
tree4e8d181600a367073936a13f38a666893227c192
parent03863d7a713c845ff23b750268ddd105b46fdc93
Fix "translucence" of surfaces

The surfaces "glow" instead of reflect light. In other words the lights
and shadows that are seen from one side of a (eq.) plane are seen from
the other (unilluminated) side.
This commit makes it so the light only reflects.
The sphere needs to get self-obstruction implemented. On he inside it
does not cast its own shadow for now.

The test_scene now contains a green light inside the sphere to test the
interior rendering.
src/scene.c
test_scene.rt