DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
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.
protected 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
override void RegisterMaterialParameters()
static const int PARAM_POWERX
override string GetDefaultMaterialPath()
override int GetPostProcessEffectID()
static const int PARAM_OFFSETX
static const int L_0_PAIN_BLUR
static const int PARAM_OFFSETY
static const int PARAM_POWERY
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72