reflect

inline fun reflect(i: Float2, n: Float2): Float2
inline fun reflect(i: Float3, n: Float3): Float3

Returns the reflection of incident vector i off a surface with normal n.

n is assumed to be normalized. Result = i - 2 * dot(n, i) * n.


inline fun reflect(i: Half3, n: Half3): Half3

Returns the reflection of incident vector i off a surface with normal n (assumed normalized).