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;
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;
24 override int GetPostProcessEffectID()
29 override string GetDefaultMaterialPath()
31 return "Graphics/Materials/postprocess/filmgrainNV";
34 override void RegisterMaterialParameters()
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);