mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
limit flow scale
This commit is contained in:
parent
3b302e63d8
commit
071980abec
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue