DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPEDistort.c
См. документацию.
1
3{
4 static const int PARAM_DISTORT = 0;
5 static const int PARAM_CENTERX = 1;
6 static const int PARAM_CENTERY = 2;
7 static const int PARAM_CHROM_ABB = 3;
8 static const int PARAM_CHROM_ABB_SHIFTR = 4;
9 static const int PARAM_CHROM_ABB_SHIFTG = 5;
10 static const int PARAM_CHROM_ABB_SHIFTB = 6;
11 static const int PARAM_CHROM_COLOR_MOD = 7;
12 static const int PARAM_DISTORT_WEIGHT = 8;
13
14 //layering info
15 static const int L_0_HMP = 100;
16 static const int L_1_HMP = 100;
17 static const int L_2_HMP = 100;
18 static const int L_3_HMP = 100;
19 static const int L_4_HMP = 100;
20 static const int L_5_HMP = 100;
21 static const int L_6_HMP = 100;
22 static const int L_7_HMP = 100;
23
25 {
26 return PostProcessEffectType.Distort;
27 }
28
29 override string GetDefaultMaterialPath()
30 {
31 return "Graphics/Materials/postprocess/distort";
32 }
33
35 {
36 RegisterParameterScalarFloat(PARAM_DISTORT, "Distort", 0, -5, 5);
37 RegisterParameterScalarFloat(PARAM_CENTERX, "CenterX", 0, -1, 1);
38 RegisterParameterScalarFloat(PARAM_CENTERY, "CenterY", 0, -1, 1);
39 RegisterParameterScalarFloat(PARAM_CHROM_ABB, "MaxChromAbberation", 0, 0, 1);
40 RegisterParameterScalarFloat(PARAM_CHROM_ABB_SHIFTR, "ChromAbberationShiftR", 0, -2, 2);
41 RegisterParameterScalarFloat(PARAM_CHROM_ABB_SHIFTG, "ChromAbberationShiftG", 1, -2, 2);
42 RegisterParameterScalarFloat(PARAM_CHROM_ABB_SHIFTB, "ChromAbberationShiftB", 2, -2, 2);
43 RegisterParameterColor(PARAM_CHROM_COLOR_MOD, "ModulateColor", 0, 0, 0, 0);
44 RegisterParameterScalarFloat(PARAM_DISTORT_WEIGHT, "DistortWeight", 1.0, 0.0, 1.0);
45 }
46}
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 ...
Определения PPEMatClassesBase.c:77
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 ...
Определения PPEMatClassesBase.c:102
void PPEClassBase(string mat_path_override="")
Определения PPEMatClassesBase.c:14
static const int PARAM_CHROM_COLOR_MOD
Chromatic abberation blue channel shift magnitude. 0 = none, 2 = default.
Определения PPEDistort.c:11
override void RegisterMaterialParameters()
Определения PPEDistort.c:34
static const int L_6_HMP
Определения PPEDistort.c:21
static const int PARAM_DISTORT_WEIGHT
Color modulation effect. (red, green, blue, scale) (0,0,0,0) = default.
Определения PPEDistort.c:12
static const int L_7_HMP
Определения PPEDistort.c:22
override int GetPostProcessEffectID()
Определения PPEDistort.c:24
static const int PARAM_CENTERY
Lens center X direction (-1 = left, 0 = center, 1 = right)
Определения PPEDistort.c:6
static const int PARAM_DISTORT
Определения PPEDistort.c:4
static const int PARAM_CHROM_ABB_SHIFTG
Chromatic abberation red channel shift magnitude. 0 = none.
Определения PPEDistort.c:9
static const int L_4_HMP
Определения PPEDistort.c:19
static const int L_5_HMP
Определения PPEDistort.c:20
static const int PARAM_CHROM_ABB_SHIFTR
Maximum value of chromatic abberation, 0 = disable - note that chrom. aberr depends on amount of dist...
Определения PPEDistort.c:8
static const int PARAM_CHROM_ABB
Lens center Y direction (-1 = top, 0 = center, 1 = bottom)
Определения PPEDistort.c:7
static const int PARAM_CENTERX
Lens distortion magnitude, x > 0 = barrel distortion, x < 0 = pincushion distortion.
Определения PPEDistort.c:5
static const int PARAM_CHROM_ABB_SHIFTB
Chromatic abberation green channel shift magnitude. 0 = none, 1 = default.
Определения PPEDistort.c:10
static const int L_1_HMP
Определения PPEDistort.c:16
static const int L_0_HMP
Distortion applied to imagine. 1 = all, 0 = none, applied only to ChromAbber.
Определения PPEDistort.c:15
static const int L_3_HMP
Определения PPEDistort.c:18
static const int L_2_HMP
Определения PPEDistort.c:17
override string GetDefaultMaterialPath()
Определения PPEDistort.c:29
Distort - PostProcessEffectType.Distort.
Определения PPEDistort.c:3
PostProcessEffectType
Post-process effect type.
Определения EnWorld.c:72