combined engine.webgl.set.buffer() calls into a for loop