fixed shader variable update with numpy arrays