Update Triangle gradient 3d