Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ppecolors.c
Go to the documentation of this file.
1
2//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
15 {
16 return PostProcessEffectType.Colors;
17 }
18
19 override string GetDefaultMaterialPath()
20 {
21 return "Graphics/Materials/postprocess/colors";
22 }
23
25 {
30 RegisterParameterColor(PARAM_OVERLAYCOLOR,"OverlayColor",1,1,1,0);
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}
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 PPEClassBase(string mat_path_override="")
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 ...
void RegisterParameterVector(int idx, string parameter_name, array< float > default_values)
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 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 ...
Colors - PostProcessEffectType.Colors.
Definition ppecolors.c:4
override void RegisterMaterialParameters()
Definition ppecolors.c:24
static const int PARAM_BRIGHTNESS
Definition ppecolors.c:5
static const int PARAM_COLORIZATIONCOLOR
Definition ppecolors.c:11
override string GetDefaultMaterialPath()
Definition ppecolors.c:19
override int GetPostProcessEffectID()
Definition ppecolors.c:14
static const int PARAM_CONTRAST
Definition ppecolors.c:6
static const int PARAM_SATURATION
Definition ppecolors.c:10
static const int PARAM_DESATURATIONWEIGHTS
Definition ppecolors.c:12
static const int PARAM_OVERLAYFACTOR
Definition ppecolors.c:8
static const int PARAM_OVERLAYCOLOR
Definition ppecolors.c:9
static const int PARAM_OFFSET
Definition ppecolors.c:7
PostProcessEffectType
Post-process effect type.
Definition enworld.c:72
class PPEMatClassParameterFloat extends PPEMatClassParameterCommandData PPEMatClassParameterFloatSaturation(int mat_idx, int parameter_idx, PPEClassBase parent)