Skip to content

Commit

Permalink
[common] Renaming function normalize to pglNormalize
Browse files Browse the repository at this point in the history
  • Loading branch information
sherholz-intel committed Sep 9, 2024
1 parent b5ed2e4 commit df20ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openpgl/include/openpgl/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ inline void pglBox3f(pgl_box3f &box, const float lx, const float ly, const float
pglVec3f(box.upper, ux, uy, uz);
}

inline pgl_vec3f normalize(pgl_vec3f n)
inline pgl_vec3f pglNormalize(pgl_vec3f n)
{
const float f = 1.f / std::sqrt(n.x * n.x + n.y * n.y + n.z * n.z);
return {n.x * f, n.y * f, n.z * f};
Expand Down
2 changes: 1 addition & 1 deletion openpgl/include/openpgl/compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ inline pgl_vec3f dequantize_direction(const uint32_t word)
pgl_vec2f b = {std::abs(n.y), std::abs(n.x)};
n = {(1.f - b.x) * signNotZero.x, (1.f - b.y) * signNotZero.y};
}
return normalize({n.x, n.y, 1.0f - nl1});
return pglNormalize({n.x, n.y, 1.0f - nl1});

////////////////////////////////////////////////////////////////////////
}

0 comments on commit df20ff2

Please sign in to comment.