9 static const int PARAM_VISIBLEPERCENT = 0;
10 static const int PARAM_TARGETBRIGHTNESS = 1;
11 static const int PARAM_SPEEDDARKTOBRIGHT = 2;
12 static const int PARAM_SPEEDBRIGHTTODARK = 3;
13 static const int PARAM_TONEMAPPING = 4;
14 static const int PARAM_HDR = 5;
15 static const int PARAM_FILMICSHOULDERSTRENGTH = 6;
16 static const int PARAM_FILMICLINEARSTRENGTH = 7;
17 static const int PARAM_FILMICLINEARANGLE = 8;
18 static const int PARAM_FILMICTOESTRENGTH = 9;
19 static const int PARAM_FILMICTOENUMERATOR = 10;
20 static const int PARAM_FILMICTOEDENUMERATOR = 11;
21 static const int PARAM_FILMICEXPOSUREBIAS = 12;
22 static const int PARAM_FILMICWHITEPOINT = 13;
23 static const int PARAM_BLOOMTHRESHOLD = 14;
24 static const int PARAM_BLOOMSTEEPNESS = 15;
25 static const int PARAM_BLOOMINTENSITY = 16;
26 static const int PARAM_BRIGHTNESS = 17;
27 static const int PARAM_CONTRAST = 18;
28 static const int PARAM_OFFSET = 19;
29 static const int PARAM_OVERLAYFACTOR = 20;
30 static const int PARAM_OVERLAYCOLOR = 21;
31 static const int PARAM_SATURATION = 22;
32 static const int PARAM_COLORIZATIONCOLOR = 23;
33 static const int PARAM_DESATURATIONWEIGHTS = 24;
34 static const int PARAM_VIGNETTE = 25;
35 static const int PARAM_VIGNETTECOLOR = 26;
36 static const int PARAM_LENSDISTORT = 27;
37 static const int PARAM_MAXCHROMABBERATION = 28;
38 static const int PARAM_LENSCENTERX = 29;
39 static const int PARAM_LENSCENTERY = 30;
42 static const int L_20_HIT = 100;
43 static const int L_20_FLASHBANG = 300;
44 static const int L_20_SHOCK = 500;
46 static const int L_21_SHOCK = 100;
47 static const int L_21_HIT = 300;
48 static const int L_21_FLASHBANG = 500;
50 static const int L_22_BLOODLOSS = 100;
52 static const int L_23_GLASSES = 100;
53 static const int L_23_TOXIC_TINT = 200;
54 static const int L_23_NVG = 600;
56 static const int L_25_MENU = 100;
57 static const int L_25_TUNNEL = 300;
58 static const int L_25_SHOCK = 500;
59 static const int L_25_UNCON = 700;
60 static const int L_25_BURLAP = 800;
62 static const int L_26_MENU = 100;
63 static const int L_26_TUNNEL = 300;
64 static const int L_26_SHOCK = 500;
65 static const int L_26_UNCON = 700;
66 static const int L_26_BURLAP = 800;
68 static const int L_27_ADS = 100;
70 static const int L_28_ADS = 100;
72 static const int L_29_ADS = 100;
74 static const int L_30_ADS = 100;
76 override int GetPostProcessEffectID()
81 override string GetDefaultMaterialPath()
83 return "Graphics/Materials/postprocess/glow";
86 override void RegisterMaterialParameters()
89 RegisterParameterScalarFloat(PARAM_VISIBLEPERCENT,
"VisiblePercent",95,1,100);
90 RegisterParameterScalarFloat(PARAM_TARGETBRIGHTNESS,
"TargetBrightness",0.3,0.01,1);
91 RegisterParameterScalarFloat(PARAM_SPEEDDARKTOBRIGHT,
"SpeedDarkToBright",0.3,0.01,1);
92 RegisterParameterScalarFloat(PARAM_SPEEDBRIGHTTODARK,
"SpeedBrightToDark",0.3,0.01,1);
93 RegisterParameterScalarInt(PARAM_TONEMAPPING,
"ToneMapping",2,0,2);
94 RegisterParameterScalarBool(PARAM_HDR,
"HDR",1);
96 RegisterParameterScalarFloat(PARAM_FILMICSHOULDERSTRENGTH,
"FilmicShoulderStrength",0.153,0,1);
97 RegisterParameterScalarFloat(PARAM_FILMICLINEARSTRENGTH,
"FilmicLinearStrength",0.357,-1,1);
98 RegisterParameterScalarFloat(PARAM_FILMICLINEARANGLE,
"FilmicLinearAngle",0.231,-1,1);
99 RegisterParameterScalarFloat(PARAM_FILMICTOESTRENGTH,
"FilmicToeStrength",0.1573,0.001,3);
100 RegisterParameterScalarFloat(PARAM_FILMICTOENUMERATOR,
"FilmicToeNumerator",0.011,-1,1);
101 RegisterParameterScalarFloat(PARAM_FILMICTOEDENUMERATOR,
"FilmicToeDenumerator",3.75,0.1,20);
102 RegisterParameterScalarFloat(PARAM_FILMICEXPOSUREBIAS,
"FilmicExposureBias",4.0,0.1,20);
103 RegisterParameterScalarFloat(PARAM_FILMICWHITEPOINT,
"FilmicWhitePoint",1.5,0.1,20);
105 RegisterParameterScalarFloat(PARAM_BLOOMTHRESHOLD,
"BloomThreshold",0.5,0,1);
106 RegisterParameterScalarFloat(PARAM_BLOOMSTEEPNESS,
"BloomSteepness",1,0,10);
107 RegisterParameterScalarFloat(PARAM_BLOOMINTENSITY,
"BloomIntensity",1,0,4);
110 RegisterParameterScalarFloat(PARAM_BRIGHTNESS,
"Brightness",1,0,2);
111 RegisterParameterScalarFloat(PARAM_CONTRAST,
"Contrast",1,0,2);
112 RegisterParameterScalarFloat(PARAM_OFFSET,
"Offset",0,-1,1);
113 RegisterParameterScalarFloat(PARAM_OVERLAYFACTOR,
"OverlayFactor",0,0,1);
114 RegisterParameterColor(PARAM_OVERLAYCOLOR,
"OverlayColor",1,1,1,0);
116 RegisterParameterColorEx(PARAM_COLORIZATIONCOLOR,
"ColorizationColor",1.0,1.0,1.0,0.0,PPEMatClassParameterColorColorization);
117 RegisterParameterVector(PARAM_DESATURATIONWEIGHTS,
"DesaturationWeights",{0.299,0.587,0.114,0});
118 RegisterParameterScalarFloat(PARAM_VIGNETTE,
"Vignette",0,0,2);
119 RegisterParameterColor(PARAM_VIGNETTECOLOR,
"VignetteColor",0,0,0,0);
121 RegisterParameterScalarFloat(PARAM_LENSDISTORT,
"LensDistort",0,-5,5);
122 RegisterParameterScalarFloat(PARAM_MAXCHROMABBERATION,
"MaxChromAbberation",0,0,1);
123 RegisterParameterScalarFloat(PARAM_LENSCENTERX,
"LensCenterX",0,-1,1);
124 RegisterParameterScalarFloat(PARAM_LENSCENTERY,
"LensCenterY",0,-1,1);