Content deleted Content added
m + Link(s) |
→Computationally more efficient alterations: finish the advantage of this approach |
||
Line 54:
The <math>\gamma</math> value can be chosen to be a fixed power of 2, <math>\gamma = 2^n</math> where <math>n</math> is a small integer; then the expression <math>(1 - \beta\lambda)^\gamma</math> can be efficiently calculated by squaring <math>(1 - \beta\lambda)</math> <math>n</math> times. Here the ''shininess'' parameter is <math>\beta</math>, proportional to the original parameter <math>\alpha</math>.
This method substitutes a few multiplications for a variable exponentiation, and removes the need for an accurate reciprocal-square-root-based vector normalization.
==Inverse Phong reflection model==
|