mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 14:42:19 +02:00
fix hud sphere
This commit is contained in:
parent
4adc357534
commit
3b877db992
1 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,12 @@ void CompositeHUD::run(const RenderContextPointer& renderContext) {
|
|||
// Grab the HUD texture
|
||||
#if !defined(DISABLE_QML)
|
||||
gpu::doInBatch("CompositeHUD", renderContext->args->_context, [&](gpu::Batch& batch) {
|
||||
glm::mat4 projMat;
|
||||
Transform viewMat;
|
||||
renderContext->args->getViewFrustum().evalProjectionMatrix(projMat);
|
||||
renderContext->args->getViewFrustum().evalViewTransform(viewMat);
|
||||
batch.setProjectionTransform(projMat);
|
||||
batch.setViewTransform(viewMat, true);
|
||||
if (renderContext->args->_hudOperator) {
|
||||
renderContext->args->_hudOperator(batch, renderContext->args->_hudTexture, renderContext->args->_renderMode == RenderArgs::RenderMode::MIRROR_RENDER_MODE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue