Exact rational value of a squared cosine between two arbitrary vectors
texpaste.com
texpaste.com
I looked at Phong's reflection model[3] and saw that the specular part requires a power of the cosine. The exponent is called "shininess".
I wondered if it's possible to compute this power of a cosine without having to normalize vectors.
Turns out it's possible, as long as shininess is an even integer.
1. https://en.wikipedia.org/wiki/Rational_trigonometry