The
phase
depends
on the
relative
positions
of the
moon,
Earth,
and the
sun.