mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-04-05 17:10:55 +00:00
fixed CRP G-buffer visualizations
broken by ca3d15282b
it drew the debug viz to the RT the tone mapper would later write to as well before actual GUI drawing...
This commit is contained in:
parent
bbced6e7e6
commit
c85ad330b3
3 changed files with 4 additions and 6 deletions
|
@ -82,7 +82,7 @@ void GBufferViz::Init()
|
|||
}
|
||||
}
|
||||
|
||||
void GBufferViz::DrawGUI()
|
||||
void GBufferViz::DrawVizAndGUI(HTexture renderTarget)
|
||||
{
|
||||
GUI_AddMainMenuItem(GUI_MainMenu::Tools, "Show G-Buffer", "", &windowActive);
|
||||
|
||||
|
@ -91,8 +91,6 @@ void GBufferViz::DrawGUI()
|
|||
return;
|
||||
}
|
||||
|
||||
const HTexture renderTarget = crp.GetReadRenderTarget();
|
||||
|
||||
if(textureIndex == GBufferTexture::Depth)
|
||||
{
|
||||
srp.renderMode = RenderMode::None;
|
||||
|
|
|
@ -291,7 +291,7 @@ private:
|
|||
struct GBufferViz
|
||||
{
|
||||
void Init();
|
||||
void DrawGUI();
|
||||
void DrawVizAndGUI(HTexture renderTarget);
|
||||
|
||||
private:
|
||||
struct GBufferTexture
|
||||
|
|
|
@ -680,14 +680,14 @@ void CRP::EndFrame()
|
|||
return;
|
||||
}
|
||||
|
||||
toneMap.DrawToneMap();
|
||||
srp.DrawGUI();
|
||||
gbufferViz.DrawGUI();
|
||||
magnifier.DrawGUI();
|
||||
gbufferViz.DrawVizAndGUI(crp.GetReadRenderTarget());
|
||||
sunlightEditor.DrawGUI();
|
||||
volumetricLight.DrawGUI();
|
||||
vdbManager.DrawGUI();
|
||||
im3d.DrawGUI();
|
||||
toneMap.DrawToneMap();
|
||||
imgui.Draw(renderTarget);
|
||||
magnifier.Draw();
|
||||
BlitRenderTarget(GetSwapChainTexture(), "Blit to Swap Chain");
|
||||
|
|
Loading…
Reference in a new issue