\begin{align*} & \overrightarrow{F}(r_l,h) = -\frac{3}{2} \; h^2 \; \frac{r_l}{\|r_l\|^6} \quad \text{, where}\\ & h = \|r_l \cross v_l\| \text{ (calculated right before being affected by black hole)}\\ & \|x\| = \text{magnitude of }x\\ & r_l = \text{vector from black hole center to light "particle"}\\ & v_l = \text{velocity of light "particle"} \end{align*}