To calculate u, v based on w, we have to at least know the top direction of the camera besides the direction of it.
To calculate u, v based on w, we have to at least know the top direction of the camera besides the direction of it.