Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qtquick3d
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andy Nichols
qtquick3d
Commits
2d4f0776
Commit
2d4f0776
authored
5 years ago
by
Richard Gustavsen
Browse files
Options
Downloads
Patches
Plain Diff
QDemonCamera: add const keyword
parent
249bb75d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3666
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/quick3d/qdemoncamera.cpp
+1
-1
1 addition, 1 deletion
src/quick3d/qdemoncamera.cpp
with
1 addition
and
1 deletion
src/quick3d/qdemoncamera.cpp
+
1
−
1
View file @
2d4f0776
...
...
@@ -171,7 +171,7 @@ QVector3D QDemonCamera::worldToViewport(const QVector3D &worldPos) const
// Transform position
const
QMatrix4x4
worldToCamera
=
m_cameraNode
->
globalTransform
.
inverted
();
QMatrix4x4
projectionViewMatrix
=
m_cameraNode
->
projection
*
worldToCamera
;
const
QMatrix4x4
projectionViewMatrix
=
m_cameraNode
->
projection
*
worldToCamera
;
QVector4D
pos4d
=
mat44
::
transform
(
projectionViewMatrix
,
worldPosRightHand
);
// Check if the position is visible in the viewport
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment