Graphics/Camera: Add clear color per viewer

This commit is contained in:
Jérôme Leclercq
2021-11-13 20:06:34 +01:00
parent a812c69e69
commit 342c053faa
7 changed files with 22 additions and 2 deletions

View File

@@ -475,7 +475,7 @@ namespace Nz
forwardPass.SetDepthStencilInput(viewerData.depthStencilAttachment);
//forwardPass.SetDepthStencilOutput(viewerData.depthStencilAttachment);
forwardPass.SetClearColor(0, Color::Black);
forwardPass.SetClearColor(0, viewer->GetClearColor());
forwardPass.SetDepthStencilClear(1.f, 0);
forwardPass.SetExecutionCallback([&]()