unif array expansion for custom shaders