5 static const int PARAM_RADIUSMETERS = 0;
6 static const int PARAM_INTENSITY = 1;
7 static const int PARAM_BLURSHARPNESS = 2;
8 static const int PARAM_NDOTVBIAS = 3;
9 static const int PARAM_SMALLSCALEAO = 4;
10 static const int PARAM_LARGESCALEAO = 5;
11 static const int PARAM_NUMDIRECTIONS = 6;
12 static const int PARAM_NUMSAMPLES = 7;
13 static const int PARAM_DEINTERLEAVE = 8;
15 override int GetPostProcessEffectID()
20 override string GetDefaultMaterialPath()
22 return "Graphics/Materials/postprocess/hbao";
25 override void RegisterMaterialParameters()
27 RegisterParameterScalarFloat(PARAM_RADIUSMETERS,
"RadiusMeters",2.0,0.1,10.0);
28 RegisterParameterScalarFloat(PARAM_INTENSITY,
"Intensity",1.0,0.1,100.0);
29 RegisterParameterScalarFloat(PARAM_BLURSHARPNESS,
"BlurSharpness",32.0,1.0,300.0);
30 RegisterParameterScalarFloat(PARAM_NDOTVBIAS,
"NdotVBias",0.2,0.0,0.5);
31 RegisterParameterScalarFloat(PARAM_SMALLSCALEAO,
"SmallScaleAO",1.0,0.1,2.0);
32 RegisterParameterScalarFloat(PARAM_LARGESCALEAO,
"LargeScaleAO",1.0,0.1,2.0);
33 RegisterParameterScalarInt(PARAM_NUMDIRECTIONS,
"NumDirections",8,1,8);
34 RegisterParameterScalarInt(PARAM_NUMSAMPLES,
"NumSamples",4,1,8);
35 RegisterParameterScalarBool(PARAM_DEINTERLEAVE,
"Deinterleave",
true);