We can solve the Black Scholes PDE by numerical methods like Euler \begin{equation} \frac{\partial V}{\partial t} + rS\frac{\partial V}{\partial S}+\frac{1}{2} \sigma^2 S^2\frac{\partial^2 V}{\partial S^2}-rV=0 \end{equation} In order to do that, we need to discretize the stock space. A simple way is to set a range of potential stock prices and then uniformly divide it.
My confusion is that, in this process, the distribution of the underlying stock price, i.e., $dS_t=rS_tdt+\sigma dW$, seems to only factor in determining the range of the space grid. So the probability of getting to each space grid does not affect the PDE solution. But on the other hand, if the stock price follows another process even if the distribution has a similar range the option price should certainly change. What am I missing here?