Fill Matrix data before rendering Scene
This commit is contained in:
parent
8417fd3394
commit
0acc7d18d0
@ -354,7 +354,6 @@ private:
|
|||||||
void renderTransparent();
|
void renderTransparent();
|
||||||
void renderParticles();
|
void renderParticles();
|
||||||
void computeSunVisibility();
|
void computeSunVisibility();
|
||||||
void computeCameraMatrix(scene::ICameraSceneNode * const camnode, size_t width, size_t height);
|
|
||||||
void renderShadows();
|
void renderShadows();
|
||||||
void renderGlow(std::vector<GlowData>& glows);
|
void renderGlow(std::vector<GlowData>& glows);
|
||||||
void renderSSAO();
|
void renderSSAO();
|
||||||
@ -676,6 +675,7 @@ public:
|
|||||||
void onUnloadWorld();
|
void onUnloadWorld();
|
||||||
|
|
||||||
void renderScene(scene::ICameraSceneNode * const camnode, std::vector<GlowData>& glows, float dt, bool hasShadows);
|
void renderScene(scene::ICameraSceneNode * const camnode, std::vector<GlowData>& glows, float dt, bool hasShadows);
|
||||||
|
void computeCameraMatrix(scene::ICameraSceneNode * const camnode, size_t width, size_t height);
|
||||||
|
|
||||||
// --------------------- RTT --------------------
|
// --------------------- RTT --------------------
|
||||||
/**
|
/**
|
||||||
|
@ -173,6 +173,7 @@ void ModelViewWidget::update(float delta)
|
|||||||
irr_driver->getSceneManager()->setActiveCamera(m_camera);
|
irr_driver->getSceneManager()->setActiveCamera(m_camera);
|
||||||
|
|
||||||
std::vector<IrrDriver::GlowData> glows;
|
std::vector<IrrDriver::GlowData> glows;
|
||||||
|
irr_driver->computeCameraMatrix(m_camera, 512, 512);
|
||||||
irr_driver->renderScene(m_camera, glows, GUIEngine::getLatestDt(), false);
|
irr_driver->renderScene(m_camera, glows, GUIEngine::getLatestDt(), false);
|
||||||
m_frame_buffer = irr_driver->getPostProcessing()->render(m_camera);
|
m_frame_buffer = irr_driver->getPostProcessing()->render(m_camera);
|
||||||
glViewport(0, 0, UserConfigParams::m_width, UserConfigParams::m_height);
|
glViewport(0, 0, UserConfigParams::m_width, UserConfigParams::m_height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user