Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppefilmgrain.c
Go to the documentation of this file.
1 
7 {
8  static const int PARAM_INTENSITY = 0;
9  static const int PARAM_SHARPNESS = 1;
10  static const int PARAM_GRAINSIZE = 2;
11  static const int PARAM_INTENSITYX0 = 3;
12  static const int PARAM_INTENSITYX1 = 4;
13  static const int PARAM_MONOCHROMATIC = 5;
14  static const int PARAM_SIMPLE = 6;
15  static const int PARAM_DISTORT = 7;
16  static const int PARAM_FREQUENCY = 8;
17  //static const int PARAM_NOISEMAP = 9;
18 
19  static const int L_1_NVG = 100;
20  static const int L_1_TOXIC_TINT = 200;
21  static const int L_2_NVG = 100;
22  static const int L_2_TOXIC_TINT = 200;
23 
24  override int GetPostProcessEffectID()
25  {
26  return PostProcessEffectType.FilmGrain;
27  }
28 
29  override string GetDefaultMaterialPath()
30  {
31  return "Graphics/Materials/postprocess/filmgrainNV"; //TODO - differentiate between filmgrainNV?
32  }
33 
34  override void RegisterMaterialParameters()
35  {
36  RegisterParameterScalarFloat(PARAM_INTENSITY,"Intensity",0.0,0.0,1.0);
37  RegisterParameterScalarFloat(PARAM_SHARPNESS,"Sharpness",2.35,0.0,20.0);
38  RegisterParameterScalarFloat(PARAM_GRAINSIZE,"GrainSize",2.75,1.0,9.0);
39  RegisterParameterScalarFloat(PARAM_INTENSITYX0,"IntensityX0",0.0,0.0,1.0);
40  RegisterParameterScalarFloat(PARAM_INTENSITYX1,"IntensityX1",0.0,0.0,1.0);
41  RegisterParameterScalarBool(PARAM_MONOCHROMATIC,"Monochromatic",true);
42  RegisterParameterScalarBool(PARAM_SIMPLE,"Simple",false);
43  RegisterParameterScalarBool(PARAM_DISTORT,"Distort",true);
44  RegisterParameterScalarFloat(PARAM_FREQUENCY,"Frequency",20.0,1.0,1000.0);
45  //RegisterParameterTexture(PARAM_NOISEMAP,"NoiseMap","{0B1C7AEDC4645C8A}System/textures/noise.edds");
46  }
47 }
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition: enworld.c:71
PPEClassBase
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition: ppematclassesbase.c:2
PPEFilmGrain
FilmGrain - PostProcessEffectType.FilmGrain.
Definition: ppefilmgrain.c:6