added WebGL sample and fixed for using WebGL