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;
15 override int GetPostProcessEffectID()
20 override string GetDefaultMaterialPath()
22 string ret =
"Graphics/Materials/postprocess/depthoffieldTest2";
49 override void RegisterMaterialParameters()
51 RegisterParameterScalarBool(PARAM_DOFLQ,
"DOFLowQuality",
false);
52 RegisterParameterScalarFloat(PARAM_FOCALDISTANCE,
"FocalDistance",0.1,0.0,1.0);
53 RegisterParameterScalarFloat(PARAM_HYPERFOCAL,
"HyperFocal",0.85,0.1,100.0);
54 RegisterParameterScalarFloat(PARAM_FOCALOFFSET,
"FocalOffset",0.0,0.0,1.0);
55 RegisterParameterScalarFloat(PARAM_BLURFACTOR,
"BlurFactor",4.0,0.0,10.0);
56 RegisterParameterScalarBool(PARAM_SIMPLEDOF,
"SimpleDOF",
false);
57 RegisterParameterScalarFloat(PARAM_SIMPLEHFNEAR,
"SimpleHyperFocalNear",0.7,0.1,100.0);
58 RegisterParameterScalarInt(PARAM_SIMPLEDOFSIZE,
"SimpleDOFSize",2.0,1.0,4.0);
59 RegisterParameterScalarInt(PARAM_SIMPLEDOFGAUSS,
"SimpleDOFGauss",1.0,0.0,4.0);