README.md aktualisiert

This commit is contained in:
Turingon 2024-03-02 10:39:48 +00:00
parent cdfcbfc8c2
commit 6f54606e85

View file

@ -97,4 +97,10 @@ The last issue left in the chapter is the darkness of the image and it's due to
### Chapter 8: The Materials struct and Metals
In this chapter I made a special struct that saves the properties of the material (its fuzz and albedo) and checks whether it is lambertian or metallic. Working without OOP gets a bit awkward here and I had some problems with debugging (due to pointers)
In this chapter I made a special struct that saves the properties of the material (its fuzz and albedo) and checks whether it is lambertian or metallic. Working without OOP gets a bit awkward here and I had some problems with debugging (due to pointers). But reflections on metals really do look nice:
<img src="https://raytracing.github.io/images/img-1.13-metal-shiny.png" width="480"/>
Most metals however aren't purely reflective, they fuzz the reflection a little bit - so they are actually something inbetween a lambertian object and a mirror. Accounting for this gives the following neat image:
<img src="https://raytracing.github.io/images/img-1.14-metal-fuzz.png" width="480"/>