Extract utitility functions in GLSL to a single utils file