Function nalgebra_glm::reflect_vec
source · Expand description
For the incident vector i
and surface orientation n
, returns the reflection direction : result = i - 2.0 * dot(n, i) * n
.
For the incident vector i
and surface orientation n
, returns the reflection direction : result = i - 2.0 * dot(n, i) * n
.