Closed Avokadoen closed 2 years ago
Ray tracing the next weekend has a concept of emit: https://github.com/RayTracing/TheNextWeek/tree/master/src But the recursive nature of the code makes it harder than a copy paste :sweat_smile:
related branch https://github.com/Avokadoen/zig_vulkan/tree/color_blend
Currently the color formula is very straight forward:
This is fine until repeated bounces are inspected. What we should see in the image is the lit side being the egg white color of the surface, and most of the shadowed area should be lit by the lit side since bounces are set to 3 here![image](https://user-images.githubusercontent.com/26302304/165294686-647ea202-29b1-4219-bcda-1ec3aa8dd440.png)