mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 13:53:38 +02:00
Restored glow effect
This commit is contained in:
parent
e51eb34f05
commit
de0e65eb03
1 changed files with 2 additions and 3 deletions
|
@ -333,9 +333,8 @@ void OculusManager::display(const glm::quat &bodyOrientation, const glm::vec3 &p
|
||||||
glViewport(0, 0, _renderTargetSize.w, _renderTargetSize.h);
|
glViewport(0, 0, _renderTargetSize.w, _renderTargetSize.h);
|
||||||
|
|
||||||
//Bind the output texture from the glow shader
|
//Bind the output texture from the glow shader
|
||||||
// QOpenGLFramebufferObject* fbo = Application::getInstance()->getGlowEffect()->render(true);
|
QOpenGLFramebufferObject* fbo = Application::getInstance()->getGlowEffect()->render(true);
|
||||||
Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->release();
|
glBindTexture(GL_TEXTURE_2D, fbo->texture());
|
||||||
glBindTexture(GL_TEXTURE_2D, Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->texture());
|
|
||||||
|
|
||||||
// restore our normal viewport
|
// restore our normal viewport
|
||||||
glViewport(0, 0, Application::getInstance()->getGLWidget()->width(), Application::getInstance()->getGLWidget()->height());
|
glViewport(0, 0, Application::getInstance()->getGLWidget()->width(), Application::getInstance()->getGLWidget()->height());
|
||||||
|
|
Loading…
Reference in a new issue