Open melissa-pan opened 4 years ago
I don't know what the bug is ... but this is beautiful. If you can recreate this effect on purpose you should use it for the creative.json
Maybe you're not taking the material's km into account, so its adding more color than necessary? I do agree this is beautiful tho O.O
Problem solved.
I added epsilon * normal for reflected ray origin and epsilon to reflected ray direction to avoid self-reflection initially. Removal of the epsilon solved the problem
Hi,
My code generates additional color onto the image after adding reflection. The image without reflection looks the same with the reference image "ambient-diffuse-specular-shadows", so I am thinking that the issue might occur in the recursion or the reflection function. I checked these two functions (raycolor, reflection) but couldn't find any problem.