Optimize gl line

* Create material only once
* Quick fix for numerical error issues


@jbeezley can you update the image?