Global illumination based on raycasting.
Render on canvans of html5.
Ref: http://www.cnblogs.com/miloyip/archive/2010/03/29/1698953.html#!comments