Try to implement sphere self obstruction inside
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 Jan 2025 15:18:48 +0000 (16:18 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 3 Jan 2025 15:18:48 +0000 (16:18 +0100)
commit475ddb1fd6107ff6bb95f4994558f1279a529f02
tree577ce1d7627a89afc62b92321e7c5aa61c1b0669
parent59b96f25f0d8e277c4f5267d923056a37baa302e
Try to implement sphere self obstruction inside

The sphere was completely lit inside by the lights outside.
I cannot stop ignoring at least parts of the objects else planes would
render with shadow acne.
So I tried to ignore the object if it obstructs itself very close from
the rendered place - this should prevent shadow acne.
The sphere however ignores the distant intersection when the close one
needs to be ignored. This manifests as "light acne" - some part are
correctly in shadow, while others cause the object to be ignored and
light passes through.
src/scene.c