DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
PPEGodRays.c
Go to the documentation of this file.
1
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
14 {
15 return PostProcessEffectType.GodRays;
16 }
17
18 override string GetDefaultMaterialPath()
19 {
20 return "Graphics/Materials/postprocess/godrayssun";
21 }
22
24 {
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}
Created once, on manager init. Script-side representation of C++ material class, separate handling.
protected 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 ...
GodRays - PostProcessEffectType.GodRays.
Definition PPEGodRays.c:3
override void RegisterMaterialParameters()
Definition PPEGodRays.c:23
override string GetDefaultMaterialPath()
Definition PPEGodRays.c:18
override int GetPostProcessEffectID()
Definition PPEGodRays.c:13
static const int L_0_GLASSES
Definition PPEGodRays.c:11
static const int PARAM_OVERBURNINTENSITY
Definition PPEGodRays.c:6
static const int PARAM_OVERBURNEND
Definition PPEGodRays.c:8
static const int PARAM_SUNVISIBLE
Definition PPEGodRays.c:5
static const int PARAM_OVERBURNSTART
Definition PPEGodRays.c:7
static const int PARAM_INTENSITY
Definition PPEGodRays.c:4
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72