generateRenderCommands now returns a list of render commands