This commit is contained in:
Turingon 2024-02-29 14:23:45 +00:00
parent 8b06725106
commit 5c2ad78ce2

View file

@ -89,4 +89,8 @@ A problem that occurs on this image is the **shadow acne** problem: A ray will a
To make the shadows look more realistic, I had to implement the Lambertian reflections: basically, most of the reflected rays will be close to the sphere normal and the probability density is dependent on cos(phi), where phi is the angle from the normal. It was very easy to implement and yields the following:
<img src="" width="480"/>
<img src="" width="480"/>
The last issue left in the chapter is the darkness of the image and it's due to some strange linear-gamma space conversion? I don't quite understand how that works, but by taking the square root of the colour values we get the right brightness. Nice
<img src="" width="480"/>