mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
experimenting login overlay following hmd
This commit is contained in:
parent
76f33ff853
commit
6707bf55ef
1 changed files with 9 additions and 0 deletions
|
@ -6299,6 +6299,15 @@ void Application::update(float deltaTime) {
|
|||
PerformanceTimer perfTimer("enqueueFrame");
|
||||
getMain3DScene()->enqueueFrame();
|
||||
}
|
||||
|
||||
if (!_loginDialogOverlayID.isNull()) {
|
||||
QVariantMap properties {
|
||||
{ "position", vec3toVariant(myAvatar->getHeadPosition()) },
|
||||
{ "orientation", quatToVariant(myAvatar->getHeadOrientation() * glm::quat(1.0f, 0.0f, 1.0f, 0.0f)) }
|
||||
};
|
||||
|
||||
getOverlays().editOverlay(_loginDialogOverlayID, properties);
|
||||
}
|
||||
}
|
||||
|
||||
void Application::updateRenderArgs(float deltaTime) {
|
||||
|
|
Loading…
Reference in a new issue