DayZ 1.24
Loading...
Searching...
No Matches
PPEWetDistort.c
Go to the documentation of this file.
1
3{
4 static const int PARAM_BLURPOWER = 0;
5 static const int PARAM_LOCALBLURPOWER = 1;
6 static const int PARAM_EFFPOWERTOP = 2;
7 static const int PARAM_EFFPOWERBOTTOM = 3;
8 static const int PARAM_BLURDOWNSIZE = 4;
9 static const int PARAM_BLURGAUSS = 5;
10 static const int PARAM_WAVSPDX1 = 6;
11 static const int PARAM_WAVSPDX2 = 7;
12 static const int PARAM_WAVSPDY1 = 8;
13 static const int PARAM_WAVSPDY2 = 9;
14 static const int PARAM_WAVEAMPX1 = 10;
15 static const int PARAM_WAVEAMPX2 = 11;
16 static const int PARAM_WAVEAMPY1 = 12;
17 static const int PARAM_WAVEAMPY2 = 13;
18 static const int PARAM_PHASERANDX = 14;
19 static const int PARAM_PHASERANDY = 15;
20 static const int PARAM_PHASEPOSX = 16;
21 static const int PARAM_PHASEPOSY = 17;
22
24 {
25 return PostProcessEffectType.WetDistort;
26 }
27
28 override string GetDefaultMaterialPath()
29 {
30 return "Graphics/Materials/postprocess/wetdistort";
31 }
32
34 {
35 RegisterParameterScalarFloat(PARAM_BLURPOWER, "BlurPower", 0.5, 0.0, 1.0);
36 RegisterParameterScalarFloat(PARAM_LOCALBLURPOWER, "LocalBlurPower", 0.4, 0.0, 1.0);
37 RegisterParameterScalarFloat(PARAM_EFFPOWERTOP, "EffectPowerTop", 0.0, 0.0, 1.0);
38 RegisterParameterScalarFloat(PARAM_EFFPOWERBOTTOM, "EffectPowerBottom", 0.0, 0.0, 1.0);
39 RegisterParameterScalarInt(PARAM_BLURDOWNSIZE, "BlurDownSize", 2, 0, 3);
40 RegisterParameterScalarInt(PARAM_BLURGAUSS, "BlurGauss", 1, 1, 4);
41 RegisterParameterScalarFloat(PARAM_WAVSPDX1, "WaveSpeedX1", 4.1, 0.5, 10.0);
42 RegisterParameterScalarFloat(PARAM_WAVSPDX2, "WaveSpeedX2", 3.7, 0.5, 10.0);
43 RegisterParameterScalarFloat(PARAM_WAVSPDY1, "WaveSpeedY1", 2.5, 0.5, 10.0);
44 RegisterParameterScalarFloat(PARAM_WAVSPDY2, "WaveSpeedY2", 1.85, 0.5, 10.0);
45 RegisterParameterScalarFloat(PARAM_WAVEAMPX1, "WaveAmpX1", 0.005, 0.001, 0.02);
46 RegisterParameterScalarFloat(PARAM_WAVEAMPX2, "WaveAmpX2", 0.004, 0.001, 0.02);
47 RegisterParameterScalarFloat(PARAM_WAVEAMPY1, "WaveAmpY1", 0.009, 0.001, 0.02);
48 RegisterParameterScalarFloat(PARAM_WAVEAMPY2, "WaveAmpY2", 0.007, 0.001, 0.02);
49 RegisterParameterScalarFloat(PARAM_PHASERANDX, "PhaseRandX", 0.5, 0.0, 1.0);
50 RegisterParameterScalarFloat(PARAM_PHASERANDY, "PhaseRandY", 0.3, 0.0, 1.0);
51 RegisterParameterScalarFloat(PARAM_PHASEPOSX, "PhasePosX", 10.0, 0.0, 20.0);
52 RegisterParameterScalarFloat(PARAM_PHASEPOSY, "PhasePosY", 6.0, 0.0, 20.0);
53 }
54}
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 ...
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
WetDistort - PostProcessEffectType.WetDistort.
static const int PARAM_LOCALBLURPOWER
static const int PARAM_PHASERANDY
static const int PARAM_EFFPOWERBOTTOM
static const int PARAM_BLURGAUSS
override int GetPostProcessEffectID()
static const int PARAM_WAVEAMPX1
static const int PARAM_WAVSPDX1
static const int PARAM_EFFPOWERTOP
static const int PARAM_WAVSPDX2
static const int PARAM_BLURPOWER
static const int PARAM_BLURDOWNSIZE
static const int PARAM_PHASERANDX
static const int PARAM_PHASEPOSY
static const int PARAM_WAVEAMPY1
override string GetDefaultMaterialPath()
static const int PARAM_PHASEPOSX
static const int PARAM_WAVEAMPX2
static const int PARAM_WAVEAMPY2
override void RegisterMaterialParameters()
static const int PARAM_WAVSPDY2
static const int PARAM_WAVSPDY1
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72