Changed to use shader to update vertices.