limit flow scale

This commit is contained in:
PancakeTAS 2025-07-10 16:32:47 +02:00
parent 3b302e63d8
commit 071980abec
No known key found for this signature in database

View file

@ -16,9 +16,10 @@ LsContext::LsContext(const Hooks::DeviceInfo& info, VkSwapchainKHR swapchain,
extent(extent) {
// read environment variables
const char* lsfgFlowScaleStr = getenv("LSFG_FLOW_SCALE");
const float flowScale = lsfgFlowScaleStr
float flowScale = lsfgFlowScaleStr
? std::stof(lsfgFlowScaleStr)
: 1.0F;
flowScale = std::max(0.3F, std::min(flowScale, 1.0F));
const char* lsfgHdrStr = getenv("LSFG_HDR");
const bool isHdr = lsfgHdrStr