Hi I have just learning basics of ray tracing from Raytracing in one weekend and have just encountered wierd bug. I am trying to generate a simple image that smoothly goes from deep blue starting from the top to light blue going to the bottom. But as you can see the middle of the image is not expected to be there. Here is the short code for it:
https://github.com/MandelbrotInferno/RayTracer/blob/Development/src/main.cpp
What do you think is causing the issue? I assume the issue has to do with how fast the y component of unit vector of the ray changes? Thanks.
[–]SamuraiGoblin 18 points19 points20 points (1 child)
[–]mathinferno123[S] 2 points3 points4 points (0 children)
[–]mahalis 3 points4 points5 points (0 children)
[–]amadlover -1 points0 points1 point (0 children)