5 static const int PARAM_DOFLQ = 0;
6 static const int PARAM_FOCALDISTANCE = 1;
7 static const int PARAM_HYPERFOCAL = 2;
8 static const int PARAM_FOCALOFFSET = 3;
9 static const int PARAM_BLURFACTOR = 4;
10 static const int PARAM_SIMPLEDOF = 5;
11 static const int PARAM_SIMPLEHFNEAR = 6;
12 static const int PARAM_SIMPLEDOFSIZE = 7;
13 static const int PARAM_SIMPLEDOFGAUSS = 8;
22 string ret =
"Graphics/Materials/postprocess/depthoffieldTest2";
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 ...
string GetDefaultMaterialPath()
override this if you want to use different path by default; '.emat' is appended automatically
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
void RegisterMaterialParameters()
inserted into associative array by parameter int value, parameter registration order does not matter ...
int GetPostProcessEffectID()
Overriden in all material classes!
void PPEClassBase(string mat_path_override="")
DepthOfField - PostProcessEffectType.DepthOfField.
PostProcessEffectType
Post-process effect type.