DayZ 1.24
Loading...
Searching...
No Matches
PPEGlow.c
Go to the documentation of this file.
1/*enum PPEGlow
2 {
3 PARAM_VISIBLEPERCENT = 0,
4 }*/
5
8{
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;
40
41 //layer info
42 static const int L_20_HIT = 100;
43 static const int L_20_FLASHBANG = 300;
44 static const int L_20_SHOCK = 500;
45
46 static const int L_21_SHOCK = 100;
47 static const int L_21_HIT = 300;
48 static const int L_21_FLASHBANG = 500;
49
50 static const int L_22_BLOODLOSS = 100;
51
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;
55
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;
61
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;
67
68 static const int L_27_ADS = 100;
69
70 static const int L_28_ADS = 100;
71
72 static const int L_29_ADS = 100;
73
74 static const int L_30_ADS = 100;
75
77 {
78 return PostProcessEffectType.Glow;
79 }
80
81 override string GetDefaultMaterialPath()
82 {
83 return "Graphics/Materials/postprocess/glow";
84 }
85
87 {
88 //HDR
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);
95 //Filmic tonemapping
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);
104 //Bloom
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);
108 //Color modificators
109 //color defines
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);
117 RegisterParameterVector(PARAM_DESATURATIONWEIGHTS, "DesaturationWeights", {0.299, 0.587, 0.114, 0});
118 RegisterParameterScalarFloat(PARAM_VIGNETTE, "Vignette", 0, 0, 2); //C++ maximum is set to 1.0 (Workbench), but the parameter can accept more. 2.0 is a reasonable value
119 RegisterParameterColor(PARAM_VIGNETTECOLOR, "VignetteColor", 0, 0, 0, 0);
120 //Distort
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);
125 }
126}
class PPEMatClassParameterFloat extends PPEMatClassParameterCommandData PPEMatClassParameterFloatSaturation(int mat_idx, int parameter_idx, PPEClassBase parent)
Created once, on manager init. Script-side representation of C++ material class, separate handling.
void RegisterParameterScalarFloat(int idx, string parameter_name, float default_value, float min, float max)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterParameterVector(int idx, string parameter_name, array< float > default_values)
void RegisterParameterColorEx(int idx, string parameter_name, float r, float g, float b, float a, typename type)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
void RegisterParameterScalarFloatEx(int idx, string parameter_name, float default_value, float min, float max, typename type)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterParameterColor(int idx, string parameter_name, float r, float g, float b, float a)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
Glow - PostProcessEffectType.Glow.
Definition PPEGlow.c:8
static const int L_25_UNCON
Definition PPEGlow.c:59
static const int PARAM_SATURATION
Definition PPEGlow.c:31
static const int L_25_SHOCK
Definition PPEGlow.c:58
static const int PARAM_FILMICSHOULDERSTRENGTH
Definition PPEGlow.c:15
static const int PARAM_OVERLAYCOLOR
Definition PPEGlow.c:30
static const int PARAM_HDR
Definition PPEGlow.c:14
static const int L_27_ADS
Definition PPEGlow.c:68
static const int L_28_ADS
Definition PPEGlow.c:70
override int GetPostProcessEffectID()
Definition PPEGlow.c:76
static const int PARAM_FILMICWHITEPOINT
Definition PPEGlow.c:22
static const int L_26_BURLAP
Definition PPEGlow.c:66
static const int PARAM_VISIBLEPERCENT
Definition PPEGlow.c:9
static const int PARAM_MAXCHROMABBERATION
Definition PPEGlow.c:37
static const int PARAM_VIGNETTECOLOR
Definition PPEGlow.c:35
static const int L_20_FLASHBANG
Definition PPEGlow.c:43
static const int L_23_NVG
Definition PPEGlow.c:54
override string GetDefaultMaterialPath()
Definition PPEGlow.c:81
static const int PARAM_FILMICTOEDENUMERATOR
Definition PPEGlow.c:20
static const int L_23_GLASSES
Definition PPEGlow.c:52
static const int L_25_BURLAP
Definition PPEGlow.c:60
static const int PARAM_TONEMAPPING
Definition PPEGlow.c:13
static const int L_21_FLASHBANG
Definition PPEGlow.c:48
static const int PARAM_SPEEDBRIGHTTODARK
Definition PPEGlow.c:12
static const int PARAM_COLORIZATIONCOLOR
Definition PPEGlow.c:32
static const int L_26_TUNNEL
Definition PPEGlow.c:63
static const int L_29_ADS
Definition PPEGlow.c:72
static const int PARAM_TARGETBRIGHTNESS
Definition PPEGlow.c:10
static const int PARAM_DESATURATIONWEIGHTS
Definition PPEGlow.c:33
static const int L_23_TOXIC_TINT
Definition PPEGlow.c:53
static const int L_26_SHOCK
Definition PPEGlow.c:64
static const int L_21_HIT
Definition PPEGlow.c:47
static const int L_20_SHOCK
Definition PPEGlow.c:44
static const int L_25_MENU
Definition PPEGlow.c:56
static const int PARAM_FILMICLINEARSTRENGTH
Definition PPEGlow.c:16
static const int L_25_TUNNEL
Definition PPEGlow.c:57
static const int L_26_UNCON
Definition PPEGlow.c:65
static const int PARAM_LENSDISTORT
Definition PPEGlow.c:36
static const int PARAM_FILMICTOESTRENGTH
Definition PPEGlow.c:18
static const int PARAM_FILMICTOENUMERATOR
Definition PPEGlow.c:19
override void RegisterMaterialParameters()
Definition PPEGlow.c:86
static const int L_30_ADS
Definition PPEGlow.c:74
static const int L_21_SHOCK
Definition PPEGlow.c:46
static const int PARAM_CONTRAST
Definition PPEGlow.c:27
static const int PARAM_LENSCENTERY
Definition PPEGlow.c:39
static const int PARAM_BLOOMINTENSITY
Definition PPEGlow.c:25
static const int PARAM_BRIGHTNESS
Definition PPEGlow.c:26
static const int PARAM_BLOOMTHRESHOLD
Definition PPEGlow.c:23
static const int PARAM_SPEEDDARKTOBRIGHT
Definition PPEGlow.c:11
static const int PARAM_LENSCENTERX
Definition PPEGlow.c:38
static const int PARAM_OVERLAYFACTOR
Definition PPEGlow.c:29
static const int L_20_HIT
Definition PPEGlow.c:42
static const int PARAM_OFFSET
Definition PPEGlow.c:28
static const int L_22_BLOODLOSS
Definition PPEGlow.c:50
static const int PARAM_FILMICLINEARANGLE
Definition PPEGlow.c:17
static const int PARAM_FILMICEXPOSUREBIAS
Definition PPEGlow.c:21
static const int L_26_MENU
Definition PPEGlow.c:62
static const int PARAM_BLOOMSTEEPNESS
Definition PPEGlow.c:24
static const int PARAM_VIGNETTE
Definition PPEGlow.c:34
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72