mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:56:43 +02:00
Removing unneeded undef
This commit is contained in:
parent
f13152b2b4
commit
81543d9185
1 changed files with 0 additions and 3 deletions
|
@ -706,9 +706,6 @@ Transform Avatar::calculateDisplayNameTransform(const ViewFrustum& frustum, floa
|
||||||
// Compute pixel alignment offset
|
// Compute pixel alignment offset
|
||||||
float clipToPix = 0.5f * windowSizeY / p1.w; // Got from clip to pixel coordinates
|
float clipToPix = 0.5f * windowSizeY / p1.w; // Got from clip to pixel coordinates
|
||||||
glm::vec4 screenPos = clipToPix * p1; // in pixels coords
|
glm::vec4 screenPos = clipToPix * p1; // in pixels coords
|
||||||
// WTF?
|
|
||||||
#undef round
|
|
||||||
|
|
||||||
glm::vec4 screenOffset = (glm::round(screenPos) - screenPos) / clipToPix; // in clip coords
|
glm::vec4 screenOffset = (glm::round(screenPos) - screenPos) / clipToPix; // in clip coords
|
||||||
glm::vec3 worldOffset = glm::vec3(screenOffset.x, screenOffset.y, 0.0f) / (float)pixelHeight;
|
glm::vec3 worldOffset = glm::vec3(screenOffset.x, screenOffset.y, 0.0f) / (float)pixelHeight;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue