Made the webgl renderer more like the canvas renderer