finaloxbow / RayTracer

Raytracer in C++ and OpenGL.
0 stars 0 forks source link

Dielectric Negative Radius Not Working Properly. #2

Open finaloxbow opened 1 year ago

finaloxbow commented 1 year ago

The current output for a dielectric sphere with negative radius does not match the results from Raytracing in a Weekend found at https://raytracing.github.io/books/RayTracingInOneWeekend.html#dielectrics/modelingahollowglasssphere.

GatsbyChenJk commented 1 year ago

Hours ago I had same issue like you descripe, and I just set a more lager radius to the left sphere(it was larger than the middle sphere as well),then I got the right result,but I dont know how :(