When processing geometry the dot product or $n\cdot L$ (where $n$ is the normal, $L$ is the light direction) is baked into the $w$ of a vertex, but since the $L$ is constant I wanted to know if there is any way to get $n$ without changing the backend processing?
2026-05-06 00:16:44.1778026604
Given the result of a dot product and one of the vectors, is it possible to find the other vector?
80 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
No, not even in the two dimensional case. In the 2-D case, however, you can narrow it down to one of two directions which are obtained from a quadratic equation:
$$ \vec{n}\cdot \vec{L} = n_x L_x + n_yL_y = k \implies n_y = \frac{k-n_xL_x}{L_y} \\n_x^2 + n_y^2 = 1\implies n_x^2 + \left( \frac{k-n_xL_x}{L_y} \right)^2 = 1 $$ which is a quadratic equation giving two possible solutions of $n_x$.
In the 3-D case a whole circle of answers is possible.