Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
ppegodrays.c
Go to the documentation of this file.
1
2
class
PPEGodRays
:
PPEClassBase
3
{
4
static
const
int
PARAM_INTENSITY
= 0;
5
static
const
int
PARAM_SUNVISIBLE
= 1;
6
static
const
int
PARAM_OVERBURNINTENSITY
= 2;
7
static
const
int
PARAM_OVERBURNSTART
= 3;
8
static
const
int
PARAM_OVERBURNEND
= 4;
9
//static const int PARAM_SUNMASKMAT = 5; //Warning, not to be used until DECLARE_RESOURCE_NAME solution is implemented!
10
11
static
const
int
L_0_GLASSES
= 100;
12
13
override
int
GetPostProcessEffectID
()
14
{
15
return
PostProcessEffectType
.GodRays;
16
}
17
18
override
string
GetDefaultMaterialPath
()
19
{
20
return
"Graphics/Materials/postprocess/godrayssun"
;
21
}
22
23
override
void
RegisterMaterialParameters
()
24
{
25
RegisterParameterScalarFloat
(
PARAM_INTENSITY
,
"Intensity"
,0.8,0,1);
26
RegisterParameterScalarFloat
(
PARAM_SUNVISIBLE
,
"SunVisible"
,1.0,0,1);
27
RegisterParameterScalarFloat
(
PARAM_OVERBURNINTENSITY
,
"OverBurnIntensity"
,0.25,0,1);
28
RegisterParameterScalarFloat
(
PARAM_OVERBURNSTART
,
"OverBurnStart"
,0.025,0,1);
29
RegisterParameterScalarFloat
(
PARAM_OVERBURNEND
,
"OverBurnEnd"
,0.175,0,1);
30
31
//TODO
32
//SunMaskMat - DECLARE_RESOURCE_NAME
33
}
34
}
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
PPEGodRays
GodRays - PostProcessEffectType.GodRays.
Definition
ppegodrays.c:3
PPEGodRays::RegisterMaterialParameters
override void RegisterMaterialParameters()
Definition
ppegodrays.c:23
PPEGodRays::GetDefaultMaterialPath
override string GetDefaultMaterialPath()
Definition
ppegodrays.c:18
PPEGodRays::GetPostProcessEffectID
override int GetPostProcessEffectID()
Definition
ppegodrays.c:13
PPEGodRays::L_0_GLASSES
static const int L_0_GLASSES
Definition
ppegodrays.c:11
PPEGodRays::PARAM_OVERBURNINTENSITY
static const int PARAM_OVERBURNINTENSITY
Definition
ppegodrays.c:6
PPEGodRays::PARAM_OVERBURNEND
static const int PARAM_OVERBURNEND
Definition
ppegodrays.c:8
PPEGodRays::PARAM_SUNVISIBLE
static const int PARAM_SUNVISIBLE
Definition
ppegodrays.c:5
PPEGodRays::PARAM_OVERBURNSTART
static const int PARAM_OVERBURNSTART
Definition
ppegodrays.c:7
PPEGodRays::PARAM_INTENSITY
static const int PARAM_INTENSITY
Definition
ppegodrays.c:4
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition
enworld.c:72
Games
Dayz
scripts
3_game
ppemanager
materials
matclasses
ppegodrays.c
Generated by
1.17.0