mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-27 21:01:41 +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) {
|
extent(extent) {
|
||||||
// read environment variables
|
// read environment variables
|
||||||
const char* lsfgFlowScaleStr = getenv("LSFG_FLOW_SCALE");
|
const char* lsfgFlowScaleStr = getenv("LSFG_FLOW_SCALE");
|
||||||
const float flowScale = lsfgFlowScaleStr
|
float flowScale = lsfgFlowScaleStr
|
||||||
? std::stof(lsfgFlowScaleStr)
|
? std::stof(lsfgFlowScaleStr)
|
||||||
: 1.0F;
|
: 1.0F;
|
||||||
|
flowScale = std::max(0.3F, std::min(flowScale, 1.0F));
|
||||||
|
|
||||||
const char* lsfgHdrStr = getenv("LSFG_HDR");
|
const char* lsfgHdrStr = getenv("LSFG_HDR");
|
||||||
const bool isHdr = lsfgHdrStr
|
const bool isHdr = lsfgHdrStr
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue