Replies: 1 comment
-
Don't know if you ever resolved this, but I do see what happened. Your function random_double(double min, double max) creates a static uniform_real_distribution. The function is called the first time with (0, 1). When the function is later called with (-1, 1) it still uses the (0, 1) range. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The light source does not emit light in all directions
but the simple light scene renders right
I really don't know where I went wrong, My code is here:https://github.com/endiow/RayTracing-The-next-week/tree/main/RayTracing_1
Can somenoe help me, pls :(
Beta Was this translation helpful? Give feedback.
All reactions