summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/multiviewport
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2023-01-17 12:25:47 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-21 10:54:49 +0000
commitcf2e2f3e1cbb7305ccf78365ed0dae99992e3892 (patch)
tree6b39acb74d10beb194a5253a0e767e8c84cbe984 /examples/qt3d/multiviewport
parent00eea450030f549af227a7db3cbe37e54e7b1410 (diff)
TriangleCollisionVisitor: perform intersections tests in local space
Rather than multiply each triangle vertex by a mat4 to bring them to world space (which is actually costlier than the actual intersection test), we compute a local ray once and use it to test against the local vertices. Change-Id: I4de9da278186f8214c32be394beb09daa9bc4914 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Mike Krus <mike.krus@kdab.com> (cherry picked from commit 675c2b852869b8b6126f380148d9e0cfe6487506) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/qt3d/multiviewport')
0 files changed, 0 insertions, 0 deletions