
Materials in Unreal Engine 185
we are using the Dot Product to calculate the angle between the reflection
vector and the camera vector. The brighter color represents when the two
vectors align.
FIGURE 4.47: Abs Expression Example.
Add: This expression takes its two input values (A and B) and returns the sum-
mation of the two values. The addition operation is performed on a per-channel
basis. In othe r words, if y ou add to Constant3Vectors, the result will be a Con-
stant3Vecto r in which the R, G, and B com ponents are the sum of the two input
R, G, and B channels, respectively.
Mathematically speakin g, Let X and Y be two N-channel vectors. Then th ...