More Ray Tracing - C

That's NotSoSimpleRayTracing-ver2 with textures added.
(the difference from A is that the lens is noisy)

The navigation is different from before:
By pressing 'm' you could bring a mirror behind the planet; but be more patient if it is present. The number of rings around the planet could be change by pressing 'n'. The size(thickness) of the rigns could be change using 'b'; if there is only one ring it could grown much more. Holding z + mouse drag right/left increases/decreases the focal length. Holding x + mouse drag moves the planet arround. Right/Left key increases/decreased the drawn size. 'f' toggle on/off the fog; 'd' changes different drag modes. Cute way to do things quickly is to hold the mouse button (drag mode) before/while pressing keys.

source: src/