mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 14:41:57 +00:00
Render skyboxes with rotation-only view matrix, a few new CDrawUtil overloads, other rendering tweaks
This commit is contained in:
@@ -67,7 +67,6 @@ void CEditorGLWidget::paintGL()
|
||||
// Camera movement is processed here in order to sync it with the paint event
|
||||
// This way movement happens exactly once per frame - no more, no less
|
||||
ProcessInput(DeltaTime);
|
||||
mCamera.LoadMatrices();
|
||||
|
||||
// Pre-render signal allows for per-frame operations to be performed before the draw happens
|
||||
emit PreRender();
|
||||
|
||||
@@ -387,9 +387,10 @@ void CWorldEditor::ViewportRender(CCamera& Camera)
|
||||
if (mDrawSky)
|
||||
{
|
||||
CModel *pSky = mpSceneManager->GetActiveSkybox();
|
||||
if (pSky) mpRenderer->RenderSky(pSky, Camera.Position());
|
||||
if (pSky) mpRenderer->RenderSky(pSky, Camera);
|
||||
}
|
||||
|
||||
Camera.LoadMatrices();
|
||||
mpRenderer->RenderBuckets(Camera);
|
||||
mpRenderer->RenderBloom();
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ void CWorldEditorWindow::PaintViewport(double DeltaTime)
|
||||
if (mShouldDrawSky)
|
||||
{
|
||||
CModel *pSky = mpSceneManager->GetActiveSkybox();
|
||||
if (pSky) mpRenderer->RenderSky(pSky, mCamera.Position());
|
||||
if (pSky) mpRenderer->RenderSky(pSky, mCamera);
|
||||
}
|
||||
|
||||
mpRenderer->RenderBuckets(mCamera);
|
||||
|
||||
Reference in New Issue
Block a user