FidelityFX-FSR plugin, initia camera render stuff

This commit is contained in:
2022-03-24 22:27:07 +02:00
parent 31b380f718
commit 45b0a62609
5 changed files with 101 additions and 3 deletions

View File

@@ -104,5 +104,22 @@ namespace Cabrito
}
}
}
[ConsoleVariable("r_renderscale")]
public static string RenderScale
{
get
{
return MainRenderTask.Instance.RenderingPercentage.ToString();
}
set
{
if (float.TryParse(value, out float valueFloat))
{
valueFloat = Mathf.Clamp(valueFloat, 0.00001f, 4.0f);
MainRenderTask.Instance.RenderingPercentage = valueFloat;
}
}
}
}
}