mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 22:23: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
|
// FIXME - face and surfaceNormal not being returned
|
||||||
|
|
||||||
// Make sure position and rotation is updated.
|
// Make sure position and rotation is updated.
|
||||||
Transform transform;
|
// XXX this code runs too often for this...
|
||||||
applyTransformTo(transform, true);
|
//Transform transform = getTransform();
|
||||||
setTransform(transform);
|
//applyTransformTo(transform, true);
|
||||||
|
//setTransform(transform);
|
||||||
|
|
||||||
vec2 size = _resolution / _dpi * INCHES_TO_METERS * vec2(getDimensions());
|
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.
|
// Produce the dimensions of the overlay based on the image's aspect ratio and the overlay's scale.
|
||||||
|
|
Loading…
Reference in a new issue