| 200 | } |
| 201 | |
| 202 | inline pgl_vec3f pglNormalize(pgl_vec3f n) |
| 203 | { |
| 204 | const float f = 1.f / std::sqrt(n.x * n.x + n.y * n.y + n.z * n.z); |
| 205 | return {n.x * f, n.y * f, n.z * f}; |
| 206 | } |
| 207 | |
| 208 | #if defined(PGL_USE_DIRECTION_COMPRESSION) || defined(OPENPGL_DIRECTION_COMPRESSION) |
| 209 | //////////////////////////////////////////////////////////////////////////// |
no test coverage detected