8 static const int PARAM_ENABLE = 0;
9 static const int PARAM_FOCUS_DIST = 1;
10 static const int PARAM_FOCUS_LEN = 2;
11 static const int PARAM_FOCUS_LEN_NEAR = 3;
12 static const int PARAM_BLUR = 4;
13 static const int PARAM_FOCUS_DEPTH_OFFSET = 5;
15 static const int L_0_ADS = 100;
16 static const int L_1_ADS = 100;
17 static const int L_2_ADS = 100;
18 static const int L_3_ADS = 100;
19 static const int L_4_ADS = 100;
20 static const int L_5_ADS = 100;
22 override int GetPostProcessEffectID()
27 override void RegisterMaterialParameters()
39 override void ApplyValueChanges()
43 SetFinalParameterValue(-1);
50 override void SetFinalParameterValue(
int parameter_idx)
53 bool is_enabled = Param1<bool>.Cast(enabled_par).param1;
59 for (
int i = 1; i < PARAM_FOCUS_DEPTH_OFFSET + 1; i++)
62 float value_var_float = Param1<float>.Cast(values).param1;
63 array_values.Insert(value_var_float);
66 g_Game.OverrideDOF(
true, array_values.Get(PARAM_FOCUS_DIST), array_values.Get(PARAM_FOCUS_LEN), array_values.Get(PARAM_FOCUS_LEN_NEAR), array_values.Get(PARAM_BLUR), array_values.Get(PARAM_FOCUS_DEPTH_OFFSET));
70 g_Game.OverrideDOF(
false,0.0,0.0,0.0,0.0,1.0);
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 RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
ref array< int > m_UpdatedParameters
DOF postprocess, does not directly use materials.
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.