Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppecolors.c
Go to the documentation of this file.
1 //TODO - 'ColorsEffect' type may be used differently in c++, no emat linked to it? Investigate.
4 {
5  static const int PARAM_BRIGHTNESS = 0;
6  static const int PARAM_CONTRAST = 1;
7  static const int PARAM_OFFSET = 2;
8  static const int PARAM_OVERLAYFACTOR = 3;
9  static const int PARAM_OVERLAYCOLOR = 4;
10  static const int PARAM_SATURATION = 5;
11  static const int PARAM_COLORIZATIONCOLOR = 6;
12  static const int PARAM_DESATURATIONWEIGHTS = 7;
13 
14  override int GetPostProcessEffectID()
15  {
16  return PostProcessEffectType.Colors;
17  }
18 
19  override string GetDefaultMaterialPath()
20  {
21  return "Graphics/Materials/postprocess/colors";
22  }
23 
24  override void RegisterMaterialParameters()
25  {
26  RegisterParameterScalarFloat(PARAM_BRIGHTNESS,"Brightness",1,0,2);
27  RegisterParameterScalarFloat(PARAM_CONTRAST,"Contrast",1,0,2);
28  RegisterParameterScalarFloat(PARAM_OFFSET,"Offset",0,-1,1);
29  RegisterParameterScalarFloat(PARAM_OVERLAYFACTOR,"OverlayFactor",0,0,1);
30  RegisterParameterColor(PARAM_OVERLAYCOLOR,"OverlayColor",1,1,1,0);
31  RegisterParameterScalarFloatEx(PARAM_SATURATION,"Saturation",1,0,1,PPEMatClassParameterFloatSaturation);
32  RegisterParameterColorEx(PARAM_COLORIZATIONCOLOR,"ColorizationColor",1.0,1.0,1.0,0.0,PPEMatClassParameterColorColorization);
33  RegisterParameterVector(PARAM_DESATURATIONWEIGHTS,"DesaturationWeights",{0.299,0.587,0.114,0});
34  }
35 }
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition: enworld.c:71
PPEClassBase
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition: ppematclassesbase.c:2
PPEMatClassParameterFloatSaturation
class PPEClassBase PPEMatClassParameterFloatSaturation
PPEColors
Colors - PostProcessEffectType.Colors.
Definition: ppecolors.c:3