params, globals, and tex2d variable tracking ok, ready to integrate
set default prec to mediump (to be configurable later)