The amount of reflected light will be returned in
kr, and the amount of
transmitted light will be returned in
kt. Optionally, the reflection and
transmission vectors can be returned in the
T variables. Both
T will be normalized.
The global variables
N will be used if the incident vector and
surface normal inputs are not connected. If connected, the
vectors must be normalized.