diff --git a/src/graphics/irr_driver.hpp b/src/graphics/irr_driver.hpp index f8992cbf8..f6b37a538 100644 --- a/src/graphics/irr_driver.hpp +++ b/src/graphics/irr_driver.hpp @@ -354,7 +354,6 @@ private: void renderTransparent(); void renderParticles(); void computeSunVisibility(); - void computeCameraMatrix(scene::ICameraSceneNode * const camnode, size_t width, size_t height); void renderShadows(); void renderGlow(std::vector& glows); void renderSSAO(); @@ -676,6 +675,7 @@ public: void onUnloadWorld(); void renderScene(scene::ICameraSceneNode * const camnode, std::vector& glows, float dt, bool hasShadows); + void computeCameraMatrix(scene::ICameraSceneNode * const camnode, size_t width, size_t height); // --------------------- RTT -------------------- /** diff --git a/src/guiengine/widgets/model_view_widget.cpp b/src/guiengine/widgets/model_view_widget.cpp index 895d0290b..8d86519f3 100644 --- a/src/guiengine/widgets/model_view_widget.cpp +++ b/src/guiengine/widgets/model_view_widget.cpp @@ -173,6 +173,7 @@ void ModelViewWidget::update(float delta) irr_driver->getSceneManager()->setActiveCamera(m_camera); std::vector glows; + irr_driver->computeCameraMatrix(m_camera, 512, 512); irr_driver->renderScene(m_camera, glows, GUIEngine::getLatestDt(), false); m_frame_buffer = irr_driver->getPostProcessing()->render(m_camera); glViewport(0, 0, UserConfigParams::m_width, UserConfigParams::m_height);