Reflect (RealityKit)
Reflects a vector about another vector.
Parameter Types
Parameter descriptions
InThe input vector to reflect.
NormalThe vector that the
Invector will be reflected with reference to.
Discussion
The Reflect node reflects the In vector by taking into account the surface orientation determined by the Normal vector. The Reflect node normalizes the Normal vector, then calculates the reflection direction using the formula, In - 2 * dot(Normal, In) * Normal. In this equation, dot() represents the dot product of the two vectors.