Computer Graphics, Python, Mathematics, Game Development, Game Design.
We generally use a normal vector to the surface and take a little step in that direction. fig. 6 — sphere normal step This trick isn’t used only for spheres, but for any kind object. Therefore, the correct code is: code. 7 — light intersection ✅ for each pixel p(x,y,z) of the screen: ✅ associate a