| update: refactor the primitive renderer.