Skip to content

Commit

Permalink
[renderer] when initializing in SDR mode, the default tonemapping wil…
Browse files Browse the repository at this point in the history
…l be Renderer_Tonemapping::NautilusACES
  • Loading branch information
PanosK92 committed Jan 17, 2025
1 parent 5ed8c5f commit a7436a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/Rendering/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ namespace spartan
SetOption(Renderer_Option::Hdr, swap_chain->IsHdr() ? 1.0f : 0.0f);
}

// tonemapping
if (!swap_chain->IsHdr())
{
SetOption(Renderer_Option::Tonemapping, static_cast<float>(Renderer_Tonemapping::NautilusACES));
}

// third party tool initialization
ThreadPool::AddTask([]()
{
Expand Down

0 comments on commit a7436a6

Please sign in to comment.