Material Expressions in Unreal Engine 4 651
Example Usa ge: When using the Cross-Product expression to find the perpendic-
ular vector to a plane of two input vectors, you can normalize the re sult to g et a
unit vector. This may be helpful in deciding to apply a World Position Offset with
exact measurements.
ONE MINUS
This expression, as the name suggests, takes an input and returns an output value that
is exactly equal to 1 minus the input value. Like other basic arithmetic expressions in
Unreal Engine 4, this expression per forms its op eration on a per-channel basis. For
example if the input is a 3Vector w ith R, G, and B values, the ou tput of th e One
Minus will be a 3Vec tor with values of 1-R, 1-G, and 1-B.
Mathematically, let X = [x
1
,x
2
,···