4 static const int POSTPROCESS_OPTION_VALUE_LOW = 0;
5 static const int POSTPROCESS_OPTION_VALUE_MEDIUM = 1;
6 static const int POSTPROCESS_OPTION_VALUE_HIGH = 2;
7 static const int POSTPROCESS_OPTION_VALUE_HIGHEST = 3;
9 static const int PARAM_NUMPASSES = 0;
10 static const int PARAM_INTENSITY = 1;
11 static const int PARAM_RADIUSNEAR = 2;
12 static const int PARAM_RADIUSFAR = 3;
13 static const int PARAM_COSANGLE0 = 4;
14 static const int PARAM_COSANGLE1 = 5;
15 static const int PARAM_MAXDISTANCE = 6;
16 static const int PARAM_MAXBLURDISTANCE = 7;
17 static const int PARAM_NEARINTENSITY = 8;
18 static const int PARAM_FARINTENSITY = 9;
19 static const int PARAM_FARINTENSITYDIST = 10;
20 static const int PARAM_NUMBLURPASSES = 11;
21 static const int PARAM_BLURSIZE = 12;
22 static const int PARAM_COLORAMOUNT = 13;
23 static const int PARAM_COLORSSAOAMOUNT = 14;
25 override int GetPostProcessEffectID()
30 override string GetDefaultMaterialPath()
35 ListOptionsAccess loa = ListOptionsAccess.Cast( options.GetOptionByType(
OptionAccessType.AT_POSTPROCESS_EFFECTS ) );
37 switch (loa.GetIndex())
39 case POSTPROCESS_OPTION_VALUE_LOW:
40 ret =
"Graphics/Materials/postprocess/hbao_low";
43 case POSTPROCESS_OPTION_VALUE_MEDIUM:
44 ret =
"Graphics/Materials/postprocess/hbao_medium";
47 case POSTPROCESS_OPTION_VALUE_HIGH:
48 ret =
"Graphics/Materials/postprocess/hbao_high";
51 case POSTPROCESS_OPTION_VALUE_HIGHEST:
52 ret =
"Graphics/Materials/postprocess/hbao_highest";
59 override void RegisterMaterialParameters()
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 ...