DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
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
25 {
26 return PostProcessEffectType.FilmGrain;
27 }
28
29 override string GetDefaultMaterialPath()
30 {
31 return "Graphics/Materials/postprocess/filmgrainNV"; //TODO - differentiate between filmgrainNV?
32 }
33
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);
44 RegisterParameterScalarFloat(PARAM_FREQUENCY,"Frequency",20.0,1.0,1000.0);
45 //RegisterParameterTexture(PARAM_NOISEMAP,"NoiseMap","{0B1C7AEDC4645C8A}System/textures/noise.edds");
46 }
47}
Created once, on manager init. Script-side representation of C++ material class, separate handling.
protected 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 ...
protected void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
FilmGrain - PostProcessEffectType.FilmGrain.
Definition PPEFilmGrain.c:7
static const int L_2_TOXIC_TINT
override void RegisterMaterialParameters()
static const int PARAM_SHARPNESS
Definition PPEFilmGrain.c:9
static const int PARAM_INTENSITYX1
static const int PARAM_FREQUENCY
override string GetDefaultMaterialPath()
override int GetPostProcessEffectID()
static const int PARAM_DISTORT
static const int PARAM_INTENSITYX0
static const int PARAM_GRAINSIZE
static const int L_2_NVG
static const int L_1_NVG
static const int PARAM_INTENSITY
Definition PPEFilmGrain.c:8
static const int L_1_TOXIC_TINT
static const int PARAM_SIMPLE
static const int PARAM_MONOCHROMATIC
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72