You can see on https://www.youtube.com/watch?v=c03afu_MSHU how it works in practice - to ensure that the color Post Processing isn't "cheaty" by increasing NVG brightness, I take the user input only as a R/G/B ratio and then distribute a total brightness value of 3 (that would normally be r=1, g=1, b=1) across different colors, resulting in a pretty close match to the unmodified color.
This also works with ACE NVG brightness adjustment (because it's a different PP effect) and should work with various other ACE NVG settings.
The code is pretty self-explanatory, strongly inspired by https://github.com/freghar/arma-additions/tree/master/addons/nightvision.
You can see on https://www.youtube.com/watch?v=c03afu_MSHU how it works in practice - to ensure that the color Post Processing isn't "cheaty" by increasing NVG brightness, I take the user input only as a R/G/B ratio and then distribute a total brightness value of 3 (that would normally be r=1, g=1, b=1) across different colors, resulting in a pretty close match to the unmodified color.
This also works with ACE NVG brightness adjustment (because it's a different PP effect) and should work with various other ACE NVG settings.