Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppehbao.c
Go to the documentation of this file.
1 //TODO - may be just a dummy, since SSAO already uses the HBAO materials?
4 {
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;
14 
15  override int GetPostProcessEffectID()
16  {
17  return PostProcessEffectType.HBAO;
18  }
19 
20  override string GetDefaultMaterialPath()
21  {
22  return "Graphics/Materials/postprocess/hbao";
23  }
24 
25  override void RegisterMaterialParameters()
26  {
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);
36  }
37 };
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition: enworld.c:71
PPEClassBase
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition: ppematclassesbase.c:2
PPEHBAO
HBAO - PostProcessEffectType.HBAO.
Definition: ppehbao.c:3