Direct intercept course; VNAV glide path; FMC
When in HGG SEL on intercept (and before next waypoint) VNAV calculates as if you were on the magenta line abeam your present position.
When in LNAV on the same intercept it calculates with your estimated track.
Do a search, has been explained before here.