mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:36:49 +02:00
Disable current splash frame implementaton
This commit is contained in:
parent
803bd284a6
commit
38f43bdc68
1 changed files with 5 additions and 5 deletions
|
@ -2646,6 +2646,9 @@ void Application::initializeDisplayPlugins() {
|
||||||
updateRenderArgs(0.0f);
|
updateRenderArgs(0.0f);
|
||||||
|
|
||||||
_offscreenContext->makeCurrent();
|
_offscreenContext->makeCurrent();
|
||||||
|
|
||||||
|
#define ENABLE_SPLASH_FRAME 0
|
||||||
|
#if ENABLE_SPLASH_FRAME
|
||||||
{
|
{
|
||||||
QMutexLocker viewLocker(&_renderArgsMutex);
|
QMutexLocker viewLocker(&_renderArgsMutex);
|
||||||
|
|
||||||
|
@ -2666,14 +2669,10 @@ void Application::initializeDisplayPlugins() {
|
||||||
batch.resetStages();
|
batch.resetStages();
|
||||||
batch.enableStereo(false);
|
batch.enableStereo(false);
|
||||||
batch.setFramebuffer(finalFramebuffer);
|
batch.setFramebuffer(finalFramebuffer);
|
||||||
batch.clearColorFramebuffer(gpu::Framebuffer::BUFFER_COLOR0, { 0, 1, 1, 1 });
|
batch.clearColorFramebuffer(gpu::Framebuffer::BUFFER_COLOR0, { 0, 0, 0, 1 });
|
||||||
|
|
||||||
batch.enableSkybox(true);
|
batch.enableSkybox(true);
|
||||||
batch.enableStereo(_appRenderArgs._isStereo);
|
batch.enableStereo(_appRenderArgs._isStereo);
|
||||||
batch.setViewportTransform({ 0, 0, finalFramebuffer->getSize() });
|
batch.setViewportTransform({ 0, 0, finalFramebuffer->getSize() });
|
||||||
batch.runLambda([] {
|
|
||||||
// update uniform values
|
|
||||||
});
|
|
||||||
procedural->render(batch, _appRenderArgs._renderArgs.getViewFrustum());
|
procedural->render(batch, _appRenderArgs._renderArgs.getViewFrustum());
|
||||||
});
|
});
|
||||||
auto frame = _gpuContext->endFrame();
|
auto frame = _gpuContext->endFrame();
|
||||||
|
@ -2685,6 +2684,7 @@ void Application::initializeDisplayPlugins() {
|
||||||
};
|
};
|
||||||
_displayPlugin->submitFrame(frame);
|
_displayPlugin->submitFrame(frame);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::initializeRenderEngine() {
|
void Application::initializeRenderEngine() {
|
||||||
|
|
Loading…
Reference in a new issue