Fix Web 3D overlay ray intersection then comment out for performance

Per Image3DOverlay.
This commit is contained in:
David Rowe 2016-12-02 18:50:01 +13:00
parent 0136534954
commit 0134709e2c

View file

@ -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.