nkVoReflect
- Last UpdatedJan 24, 2023
- 1 minute read
The nkVoReflect node returns a reflection vector using an incident ray and a surface normal.
-
This function uses the following formula: v = i - 2 * n * dot(ion)
Limits
Size: [2..4]
Ray and normal must have the same value as Size.
Code example
This is a code example for nkVoReflect.
<nkVoReflect name="nNodeName" size="3" ray="1 1 1" normal="1 0 0"/>
Additional Notes
