glsl: more single dimension support leave multidim to later