DayZ 1.24
Loading...
Searching...
No Matches
PPEHBAO.c
Go to the documentation of this file.
1
2//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
16 {
17 return PostProcessEffectType.HBAO;
18 }
19
20 override string GetDefaultMaterialPath()
21 {
22 return "Graphics/Materials/postprocess/hbao";
23 }
24
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);
36 }
37};
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 RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
HBAO - PostProcessEffectType.HBAO.
Definition PPEHBAO.c:4
static const int PARAM_NDOTVBIAS
Definition PPEHBAO.c:8
override string GetDefaultMaterialPath()
Definition PPEHBAO.c:20
override int GetPostProcessEffectID()
Definition PPEHBAO.c:15
static const int PARAM_SMALLSCALEAO
Definition PPEHBAO.c:9
static const int PARAM_INTENSITY
Definition PPEHBAO.c:6
static const int PARAM_BLURSHARPNESS
Definition PPEHBAO.c:7
static const int PARAM_NUMSAMPLES
Definition PPEHBAO.c:12
static const int PARAM_LARGESCALEAO
Definition PPEHBAO.c:10
static const int PARAM_RADIUSMETERS
Definition PPEHBAO.c:5
override void RegisterMaterialParameters()
Definition PPEHBAO.c:25
static const int PARAM_DEINTERLEAVE
Definition PPEHBAO.c:13
static const int PARAM_NUMDIRECTIONS
Definition PPEHBAO.c:11
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72