Skip to content

Commit

Permalink
[renderer] introduced low quality mode (true for relic gpus), for now…
Browse files Browse the repository at this point in the history
… this sets GI to off
  • Loading branch information
PanosK92 committed Feb 4, 2025
1 parent 26385bb commit e08cb81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/Rendering/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ namespace spartan

// options
{
bool low_quality = RHI_Device::GetPrimaryPhysicalDevice()->IsBelowMinimumRequirments();

m_options.clear();
SetOption(Renderer_Option::WhitePoint, 350.0f);
SetOption(Renderer_Option::Tonemapping, static_cast<float>(Renderer_Tonemapping::Max));
Expand All @@ -161,7 +163,7 @@ namespace spartan
SetOption(Renderer_Option::ScreenSpaceAmbientOcclusion, 1.0f);
SetOption(Renderer_Option::ScreenSpaceShadows, static_cast<float>(Renderer_ScreenspaceShadow::Bend));
SetOption(Renderer_Option::ScreenSpaceReflections, RHI_Device::GetPrimaryPhysicalDevice()->IsAmd() ? 1.0f : 0.0f); // temp workaround until I fix ssr for nvidia
SetOption(Renderer_Option::GlobalIllumination, 0.5f); // 0.5 is the percentage of the internal resolution (options are 25%, 50%, 75% and 100%)
SetOption(Renderer_Option::GlobalIllumination, low_quality ? 0.0f : 0.5f); // 0.5 is the percentage of the internal resolution (options are 25%, 50%, 75% and 100%)
SetOption(Renderer_Option::Anisotropy, 16.0f);
SetOption(Renderer_Option::ShadowResolution, 4096.0f);
SetOption(Renderer_Option::Sharpness, 0.0f); // becomes the upsampler's sharpness as well
Expand Down

0 comments on commit e08cb81

Please sign in to comment.