1
0
forked from mirrors/0ad

Adds compute shaders support and scaling with FSR.

Fixes #6842

Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D5218
This was SVN commit r28010.
This commit is contained in:
vladislavbelov
2024-01-17 19:40:27 +00:00
parent f9f798158a
commit e3f46bb809
63 changed files with 5337 additions and 118 deletions
+15 -1
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2023 Wildfire Games.
/* Copyright (C) 2024 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -197,6 +197,20 @@ void CRenderingOptions::ReadConfigAndSetupHooks()
g_Renderer.GetPostprocManager().UpdateSharpeningTechnique();
});
m_ConfigHooks->Setup("renderer.scale", []()
{
if (CRenderer::IsInitialised())
g_Renderer.GetPostprocManager().Resize();
});
m_ConfigHooks->Setup("renderer.upscale.technique", []()
{
CStr upscaleName;
CFG_GET_VAL("renderer.upscale.technique", upscaleName);
if (CRenderer::IsInitialised())
g_Renderer.GetPostprocManager().SetUpscaleTechnique(upscaleName);
});
m_ConfigHooks->Setup("smoothlos", m_SmoothLOS);
m_ConfigHooks->Setup("watereffects", [this]() {