Refract


Refract vector around normal.

template<class TYPE>
void Refract(TVec2<TYPE> &v, const TVec2<TYPE> &normal, const TYPE eta);
template<class TYPE>
void Refract(TVec3<TYPE> &v, const TVec3<TYPE> &normal, const TYPE eta);
template<class TYPE>
void Refract(TVec4<TYPE> &v, const TVec4<TYPE> &normal, const TYPE eta);
Namespace: ntl
Include: NTL/Core/Vec2.h (For TVec2 arguments)
NTL/Core/Vec3.h (For TVec3 arguments)
NTL/Core/Vec4.h (For TVec4 arguments)