New answers tagged

2

I solved this. The bright color is look like rectangle because the light that is reflected by Lambertian material is scattered randomly in unit cube (with center is the unit normal) . I fixed this by just allow ray is scattered randomly point in unit sphere. Final result Example code : Function to generate random vector vec3 random(float min, float max) { ...


Top 50 recent answers are included