Separate attribute arrays to fix 2D pattern animation