diff options
Diffstat (limited to 'tests/auto/render/raycasting/tst_raycasting.cpp')
-rw-r--r-- | tests/auto/render/raycasting/tst_raycasting.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/render/raycasting/tst_raycasting.cpp b/tests/auto/render/raycasting/tst_raycasting.cpp index 0c7110edc..57a22a8ee 100644 --- a/tests/auto/render/raycasting/tst_raycasting.cpp +++ b/tests/auto/render/raycasting/tst_raycasting.cpp @@ -322,7 +322,7 @@ void tst_RayCasting::mousePicking() // Window center on near plane Qt3DCore::QRay3D ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.center().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); Qt3DRender::Render::Sphere s(QVector3D(0.0f, 0.5f, 0.0f), 1.0f); @@ -335,7 +335,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.topLeft().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -345,7 +345,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.topRight().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -355,7 +355,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.bottomLeft().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -365,7 +365,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.bottomRight().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); |