simplified shader type. added webgl missing throwerror