mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 01:00:50 +02:00
Fix Web 3D overlay ray intersection then comment out for performance
Per Image3DOverlay.
This commit is contained in:
parent
0136534954
commit
0134709e2c
1 changed files with 4 additions and 3 deletions
|
@ -195,9 +195,10 @@ bool Web3DOverlay::findRayIntersection(const glm::vec3& origin, const glm::vec3&
|
|||
// FIXME - face and surfaceNormal not being returned
|
||||
|
||||
// Make sure position and rotation is updated.
|
||||
Transform transform;
|
||||
applyTransformTo(transform, true);
|
||||
setTransform(transform);
|
||||
// XXX this code runs too often for this...
|
||||
//Transform transform = getTransform();
|
||||
//applyTransformTo(transform, true);
|
||||
//setTransform(transform);
|
||||
|
||||
vec2 size = _resolution / _dpi * INCHES_TO_METERS * vec2(getDimensions());
|
||||
// Produce the dimensions of the overlay based on the image's aspect ratio and the overlay's scale.
|
||||
|
|
Loading…
Reference in a new issue