DayZ 1.24
Loading...
Searching...
No Matches
PPERadialBlur.c
Go to the documentation of this file.
1
3{
4 static const int PARAM_POWERX = 0;
5 static const int PARAM_POWERY = 1;
6 static const int PARAM_OFFSETX = 2;
7 static const int PARAM_OFFSETY = 3;
8 static const int PARAM_PIXELSCALE = 4;
9
10
11 static const int L_0_PAIN_BLUR = 100;
12
13
15 {
16 return PostProcessEffectType.RadialBlur;
17 }
18
19 override string GetDefaultMaterialPath()
20 {
21 return "Graphics/Materials/postprocess/radialblur";
22 }
23
25 {
26 RegisterParameterScalarFloat(PARAM_POWERX, "PowerX", 0.0, 0.0, 0.1);
27 RegisterParameterScalarFloat(PARAM_POWERY, "PowerY", 0.0, 0.0, 0.1);
28 RegisterParameterScalarFloat(PARAM_OFFSETX, "OffsetX", 0.05, 0.0, 0.5);
29 RegisterParameterScalarFloat(PARAM_OFFSETY, "OffsetY", 0.05, 0.0, 0.5);
30 RegisterParameterScalarFloat(PARAM_PIXELSCALE, "PixelScale", 0.5, 0.125, 1.0);
31 }
32}
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 ...
RadialBlur - PostProcessEffectType.RadialBlur.
static const int PARAM_PIXELSCALE
static const int PARAM_OFFSETY
override int GetPostProcessEffectID()
override string GetDefaultMaterialPath()
override void RegisterMaterialParameters()
static const int PARAM_POWERY
static const int PARAM_OFFSETX
static const int PARAM_POWERX
static const int L_0_PAIN_BLUR
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72