DayZ 1.24
Loading...
Searching...
No Matches
PPERotBlur.c
Go to the documentation of this file.
1
3{
4 static const int PARAM_POWER = 0;
5 static const int PARAM_MINANGLEPERSEC = 1;
6 static const int PARAM_MAXANGLEPERSEC = 2;
7 static const int PARAM_MINDEPTH = 3;
8 static const int PARAM_MAXDEPTH = 4;
9
11 {
12 return PostProcessEffectType.RotBlur;
13 }
14
15 override string GetDefaultMaterialPath()
16 {
17 return "Graphics/Materials/postprocess/rotblur";
18 }
19
21 {
22 RegisterParameterScalarFloat(PARAM_POWER, "Power", 0.0, 0.0, 0.09);
23 RegisterParameterScalarFloat(PARAM_MINANGLEPERSEC, "MinAnglePerSec", 10.0, 0.0, 180.0);
24 RegisterParameterScalarFloat(PARAM_MAXANGLEPERSEC, "MaxAnglePerSec", 100.0, 0.0, 180.0);
25 RegisterParameterScalarFloat(PARAM_MINDEPTH, "MinDepth", 2.5, 0.0, 5.0);
26 RegisterParameterScalarFloat(PARAM_MAXDEPTH, "MaxDepth", 4.5, 0.0, 50.0);
27 }
28}
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 ...
Rotation Blur.
Definition PPERotBlur.c:3
static const int PARAM_MAXANGLEPERSEC
Definition PPERotBlur.c:6
static const int PARAM_MINDEPTH
Definition PPERotBlur.c:7
static const int PARAM_MAXDEPTH
Definition PPERotBlur.c:8
static const int PARAM_POWER
Definition PPERotBlur.c:4
override int GetPostProcessEffectID()
Definition PPERotBlur.c:10
override string GetDefaultMaterialPath()
Definition PPERotBlur.c:15
static const int PARAM_MINANGLEPERSEC
Definition PPERotBlur.c:5
override void RegisterMaterialParameters()
Definition PPERotBlur.c:20
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72