dpjudas / UT99VulkanDrv

Vulkan, Direct3D 11 and Direct3D 12 renderer for Unreal Tournament (UT99)
Other
68 stars 8 forks source link

Vulkan Low Saturation #18

Closed BerserkerBG closed 11 months ago

BerserkerBG commented 1 year ago

I really like there is a VkSaturation option, it's really great that it lets you control it, but it seems like the range between 0 and 1 is not enough. 1 Seems to be the maximum saturation it can do. Here is how it looks like on VkSaturation=1 Screenshot_168

Here are other renderers for comparison: Screenshot_169

dpjudas commented 1 year ago

These saturation/brightness/contrast settings originate from GZDoom. There is a GrayFormula setting that can be set to 0, 1 or 2. I'm not entirely sure what the difference is between them.

Something does seem to be odd though. The HUD doesn't seem to be saturated on your screenshot (it is still blue). I'll try look into that at some point to find out what is up with that.

l0m-dev commented 1 year ago

The problem is that the saturation is clamped to 0.8 and not 1.0.

clamp(VkSaturation, -0.8f, 0.8f);

Maybe even make the maximum 1.5 for those who prefer higher saturation.