diff --git a/examples/DeferredShading/main.cpp b/examples/DeferredShading/main.cpp index e0f926d3c..97d5bae89 100644 --- a/examples/DeferredShading/main.cpp +++ b/examples/DeferredShading/main.cpp @@ -477,6 +477,7 @@ int main() std::size_t backbuffer; bool viewerUboUpdate = true; + bool lightUpdate = true; std::shared_ptr textureSampler = device->InstantiateTextureSampler({}); @@ -498,6 +499,7 @@ int main() } }); + Nz::BakedFrameGraph bakedGraph = [&] { Nz::FrameGraph graph; @@ -622,6 +624,7 @@ int main() builder.DrawIndexed(static_cast(cubeMeshGfx->GetIndexCount(0))); }); + }); forwardPass.AddInput(backbuffer); forwardPass.AddOutput(backbuffer); @@ -744,6 +747,7 @@ int main() { Nz::UInt64 now = Nz::GetElapsedMicroseconds(); elapsedTime += (now - time) / 1'000'000.f; + elapsedTime += (now - time) / 1'000'000.f; time = now; Nz::WindowEvent event; @@ -783,6 +787,7 @@ int main() viewerUboUpdate = true; } + else if (event.key.virtualKey == Nz::Keyboard::VKey::F) break; }