Open dedmen opened 6 years ago
baermitumlaut:
["visionMode", { if !(isNil "jdt_nvg_pfh") exitWith {}; jdt_nvg_pfh = [{ if ((currentVisionMode ACE_player) != 1) exitWith { [jdt_nvg_pfh] call CBA_fnc_removePerFrameHandler; jdt_nvg_pfh = nil; }; private _lightFinal = 0 max (moonIntensity - ((overcast * .8) min .275) - (rain * .5)); private _effectiveLight = _lightFinal * linearConversion [1, 3, ace_nightvision_nvgGeneration, 0.25, 1]; private _brightFinal = linearConversion [0, 1, _effectiveLight, 0.65, 0.75, true]; private _contrastFinal = linearConversion [0, 1, _effectiveLight, 0.4, 0.8, true]; private _playerBrightSetting = ACE_player getVariable ["ace_nightvision_NVGBrightness", 0]; _brightFinal = _brightFinal + (_playerBrightSetting / 20); _brightFinal = linearConversion [0, 1, ace_nightvision_effectScaling, 1, _brightFinal]; _contrastFinal = linearConversion [0, 1, ace_nightvision_effectScaling, 1, _contrastFinal]; ace_nightvision_ppeffectColorCorrect ppEffectAdjust [_brightFinal, _contrastFinal, 0.05, [0.1, 0.15, 0.9, 0.05], [1, 0.9, 1.5, 0.6], [0.33, 0.33, 0.65, 0]]; ace_nightvision_ppeffectColorCorrect ppEffectCommit 0; }] call CBA_fnc_addPerFrameHandler }, false] call CBA_fnc_addPlayerEventHandler;
ppEfct = ppEffectCreate ["ColorCorrections", 2004]; ppEfct ppEffectAdjust [1.05,0.95,0.05,[0.1,0.15,0.9,0.05],[1,0.9,1.5,0.6],[0.33,0.33,0.65,0]]; ppEfct ppEffectCommit 0; ppEfct ppEffectForceInNVG true; ppEfct ppEffectEnable true;
JDT: ppEffectAdjust [1.05,0.95,0.05,[0.1,0.15,0.9,0.05],[1,0.9,1.5,0.6],[0.33,0.33,0.65,0]];
ppEffectAdjust [1.05,0.95,0.05,[0.1,0.15,0.9,0.05],[1,0.9,1.5,0.6],[0.33,0.33,0.65,0]];
baermitumlaut:
JDT:
ppEffectAdjust [1.05,0.95,0.05,[0.1,0.15,0.9,0.05],[1,0.9,1.5,0.6],[0.33,0.33,0.65,0]];