Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
ppeghost.c
Go to the documentation of this file.
1
3{
4 //static const int PARAM_NOISE_TEX = 0; // changing texture not supported. Default '0xff000000'
5 static const int PARAM_NOISE_CHANNEL_WEIGHT = 1;
6 static const int PARAM_NOISE_OFFSET_X = 2;
7 static const int PARAM_NOISE_OFFSET_Y = 3;
8 static const int PARAM_NOISE_SCALE_X = 4;
9 static const int PARAM_NOISE_SCALE_Y = 5;
10 static const int PARAM_NOISE_REMAP_LO = 6;
11 static const int PARAM_NOISE_REMAP_HI = 7;
12
13 static const int PARAM_GHOST_OFFSET_X = 8;
14 static const int PARAM_GHOST_OFFSET_Y = 9;
15 static const int PARAM_GHOST_SCALE_X = 10;
16 static const int PARAM_GHOST_SCALE_Y = 11;
17 static const int PARAM_GHOST_COLOR_MOD = 12;
18
19 //layering info
20 static const int L_1_HMP = 100;
21 static const int L_2_HMP = 100;
22 static const int L_3_HMP = 100;
23 static const int L_4_HMP = 100;
24 static const int L_5_HMP = 100;
25 static const int L_6_HMP = 100;
26 static const int L_7_HMP = 100;
27 static const int L_8_HMP = 100;
28 static const int L_9_HMP = 100;
29
30 override int GetPostProcessEffectID()
31 {
32 return PostProcessEffectType.Ghost;
33 }
34
35 override string GetDefaultMaterialPath()
36 {
37 return "Graphics/Materials/postprocess/ghost";
38 }
39
40 override void RegisterMaterialParameters()
41 {
42 //RegisterParameterTexture(PARAM_NOISE_TEX,"NoiseMap","");
43 RegisterParameterColor(PARAM_NOISE_CHANNEL_WEIGHT,"NoiseChannelWeight",0,0,0,0);
44
45 RegisterParameterScalarFloat(PARAM_NOISE_OFFSET_X, "NoiseOffsetX", 0, 0, 1);
46 RegisterParameterScalarFloat(PARAM_NOISE_OFFSET_Y, "NoiseOffsetY", 0, 0, 1);
47 RegisterParameterScalarFloat(PARAM_NOISE_SCALE_X, "NoiseScaleX", 1, 0.0001, 100);
48 RegisterParameterScalarFloat(PARAM_NOISE_SCALE_Y, "NoiseScaleY", 1, 0.0001, 100);
49 RegisterParameterColor(PARAM_NOISE_REMAP_LO,"NoiseRemapLo",0,0,0,0);
50 RegisterParameterColor(PARAM_NOISE_REMAP_HI,"NoiseRemapHi",1,1,1,1);
51
52 RegisterParameterScalarFloat(PARAM_GHOST_OFFSET_X, "GhostOffsetX", 0, -200, 200);
53 RegisterParameterScalarFloat(PARAM_GHOST_OFFSET_Y, "GhostOffsetY", 0, -200, 200);
54 RegisterParameterScalarFloat(PARAM_GHOST_SCALE_X, "GhostScaleX", 1, 0.0001, 1);
55 RegisterParameterScalarFloat(PARAM_GHOST_SCALE_Y, "GhostScaleY", 1, 0.0001, 1);
56 RegisterParameterColor(PARAM_GHOST_COLOR_MOD,"GhostColorMod",1,1,1,0.5);
57
58 }
59}
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 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 ...
Ghost - PostProcessEffectType.Ghost.
Definition ppeghost.c:3
PostProcessEffectType
Post-process effect type.
Definition enworld.c:72