Advanced search tips: use spaces to require multiple terms (AND), |
for alternatives (OR), wrap phrases in quotes (="a b"), =term for
exact match, 'term to include, !term to exclude, ^term to match
prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to
exclude suffix.
https://jcgt.org/published/0006/01/01/paper.pdf
this method of constructing a basis from a vec3 is also used by glam::Vec3::any_orthonormal_pair
the construction of the orthonormal basis up and right vectors here needs to precisely match the rust
implementation in bevy_light/spot_light.rs:spot_light_world_from_view
Extracts the square portion of an affine matrix: i.e. discards the translation.