Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
ppedepthoffield.c
Go to the documentation of this file.
1
2
//TODO - may be just a dummy, since CGame.OverrideDOF function handles script overrides?
3
class
PPEDepthOfField
:
PPEClassBase
4
{
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;
14
15
override
int
GetPostProcessEffectID
()
16
{
17
return
PostProcessEffectType
.DepthOfField;
18
}
19
20
override
string
GetDefaultMaterialPath
()
21
{
22
string
ret =
"Graphics/Materials/postprocess/depthoffieldTest2"
;
23
/*
24
GameOptions m_Options = new GameOptions();
25
ListOptionsAccess loa = ListOptionsAccess.Cast( m_Options.GetOptionByType( AT_POSTPROCESS_EFFECTS ) );
26
27
switch (loa.GetIndex())
28
{
29
case POSTPROCESS_OPTION_VALUE_LOW:
30
ret = "Graphics/Materials/postprocess/hbao_low";
31
break;
32
33
case POSTPROCESS_OPTION_VALUE_MEDIUM:
34
ret = "Graphics/Materials/postprocess/hbao_medium";
35
break;
36
37
case POSTPROCESS_OPTION_VALUE_HIGH:
38
ret = "Graphics/Materials/postprocess/hbao_high";
39
break;
40
41
case POSTPROCESS_OPTION_VALUE_HIGHEST:
42
ret = "Graphics/Materials/postprocess/hbao_highest";
43
break;
44
}
45
*/
46
return
ret;
47
}
48
49
override
void
RegisterMaterialParameters
()
50
{
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);
60
}
61
};
PPEClassBase::RegisterParameterScalarInt
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
Definition
ppematclassesbase.c:67
PPEClassBase::RegisterParameterScalarBool
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
Definition
ppematclassesbase.c:59
PPEClassBase::RegisterParameterScalarFloat
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 ...
Definition
ppematclassesbase.c:77
PPEClassBase::PPEClassBase
void PPEClassBase(string mat_path_override="")
Definition
ppematclassesbase.c:14
PPEDepthOfField
DepthOfField - PostProcessEffectType.DepthOfField.
Definition
ppedepthoffield.c:4
PPEDepthOfField::RegisterMaterialParameters
override void RegisterMaterialParameters()
Definition
ppedepthoffield.c:49
PPEDepthOfField::PARAM_SIMPLEHFNEAR
static const int PARAM_SIMPLEHFNEAR
Definition
ppedepthoffield.c:11
PPEDepthOfField::GetDefaultMaterialPath
override string GetDefaultMaterialPath()
Definition
ppedepthoffield.c:20
PPEDepthOfField::GetPostProcessEffectID
override int GetPostProcessEffectID()
Definition
ppedepthoffield.c:15
PPEDepthOfField::PARAM_BLURFACTOR
static const int PARAM_BLURFACTOR
Definition
ppedepthoffield.c:9
PPEDepthOfField::PARAM_DOFLQ
static const int PARAM_DOFLQ
Definition
ppedepthoffield.c:5
PPEDepthOfField::PARAM_FOCALDISTANCE
static const int PARAM_FOCALDISTANCE
Definition
ppedepthoffield.c:6
PPEDepthOfField::PARAM_SIMPLEDOF
static const int PARAM_SIMPLEDOF
Definition
ppedepthoffield.c:10
PPEDepthOfField::PARAM_SIMPLEDOFGAUSS
static const int PARAM_SIMPLEDOFGAUSS
Definition
ppedepthoffield.c:13
PPEDepthOfField::PARAM_SIMPLEDOFSIZE
static const int PARAM_SIMPLEDOFSIZE
Definition
ppedepthoffield.c:12
PPEDepthOfField::PARAM_FOCALOFFSET
static const int PARAM_FOCALOFFSET
Definition
ppedepthoffield.c:8
PPEDepthOfField::PARAM_HYPERFOCAL
static const int PARAM_HYPERFOCAL
Definition
ppedepthoffield.c:7
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition
enworld.c:72
Games
Dayz
scripts
3_game
ppemanager
materials
matclasses
ppedepthoffield.c
Generated by
1.17.0