CntoDev / cnto-additions

Other
0 stars 1 forks source link

Add nv_color_mask addon to help color-impaired people #3

Closed freghar closed 3 years ago

freghar commented 3 years ago

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.

milivojm commented 3 years ago

Staged for review on project board when someone becomes available.