Pathtraced online game
The scene geometry is the same, as in raytraced version, with one difference - I made bigger sun. All materials are perfectly diffuse. There is a simple environment map with different color gradients on each hemisphere.
I have implemented the most primitive Pathtracing method. Rays are traced through the scene with cosine-importance-sampled random reflection direction. Path has non-zero color, when it hits the sun or environment map. Path is "killed" by russian roulette.
There is one thing I am worried about. I couldn't make any propper random number generator in GLSL. It seems, that my current generator is not totally random, so resulting image is a little biased (there appear color artifacts on balls after some time of rendering).
So, here it is: