DayZ 1.24
Loading...
Searching...
No Matches
PPERain Class Reference

Rain - PostProcessEffectType.Rain. More...

Inheritance diagram for PPERain:
[legend]
Collaboration diagram for PPERain:
[legend]

Private Member Functions

override int GetPostProcessEffectID ()
 
override string GetDefaultMaterialPath ()
 
override void RegisterMaterialParameters ()
 
- Private Member Functions inherited from PPEClassBase
void PPEClassBase (string mat_path_override="")
 
void Init (string mat_path_override="")
 
void CreateMaterial ()
 
Material GetMaterial ()
 
void CreateDataStructure ()
 
void RegisterMaterialParameters ()
 inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)
 
void RegisterParameterScalarBool (int idx, string parameter_name, bool default_value)
 
void RegisterParameterScalarInt (int idx, string parameter_name, int default_value, int min, int max)
 
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 the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterScalarFloatEx (int idx, string parameter_name, float default_value, float min, float max, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterColor (int idx, string parameter_name, float r, float g, float b, float a)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterColorEx (int idx, string parameter_name, float r, float g, float b, float a, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterVector (int idx, string parameter_name, array< float > default_values)
 
void RegisterParameterTexture (int idx, string parameter_name, string default_path)
 
void RegisterParameterResource (int idx, string parameter_name, string default_path)
 
void InsertParamValueData (PPERequestParamDataBase request_data)
 Distributes requester data to the material class structure and links them to appropriate parameter.
 
void RemoveRequest (int req_idx)
 unused, see 'RemoveActiveRequestFromMaterials' for more info
 
void OnUpdate (float timeslice, int order)
 generic update method, take care when overriding!
 
void SetFinalParameterValue (int parameter_idx)
 Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter.
 
void ApplyValueChanges ()
 
void InsertUpdatedParameter (int mat_id)
 
void ParamUpdateRemove (int parameter_idx)
 Queue selected parameter for removal from the update queue.
 
void SetParameterUpdating (int order, int parameter_id)
 Queue specific parameter of this material to update.
 
void ParamUpdateQueueCleanup (int order)
 
string GetDefaultMaterialPath ()
 override this if you want to use different path by default; '.emat' is appended automatically
 
void ChangeMaterialPathUsed (string path)
 
string GetCurrentMaterialPath ()
 
int GetPostProcessEffectID ()
 Overriden in all material classes!
 
PPEMatClassParameterCommandData GetParameterCommandData (int parameter_idx)
 Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour)
 
void DbgPrnt (string text)
 

Static Private Attributes

static const int PARAM_DROPDISTANCE = 0
 
static const int PARAM_DROPSIZEX = 1
 
static const int PARAM_DROPSIZEY = 2
 
static const int PARAM_RAINFOGGINESS = 3
 
static const int PARAM_RAINDENSITY = 4
 
static const int PARAM_FOGCOLORMULT = 5
 
static const int PARAM_BCKGRNDCOLORMULT = 6
 
static const int PARAM_REFRACTIONSCALE = 7
 
static const int PARAM_SUNVISIBLE = 8
 
static const int PARAM_GODRAYINTNEAR = 9
 
static const int PARAM_GODRAYINTFAR = 10
 
static const int PARAM_RIPPLESBLEND = 11
 
static const int PARAM_RIPPLESDIST = 12
 
static const int PARAM_SPEED = 13
 
static const int PARAM_DISTANTSPEED = 14
 
static const int PARAM_WINDAFFECTSPEED = 15
 
static const int PARAM_MINDIVERGENCE = 16
 
static const int PARAM_MAXDIVERGENCE = 17
 
static const int PARAM_WINDSPEEDFORMAXDIV = 18
 

Additional Inherited Members

- Private Attributes inherited from PPEClassBase
PPEManager m_Manager
 
string m_MaterialPath = ""
 
Material m_Material
 
ref map< int, ref array< int > > m_ParameterUpdateQueueMap
 
ref array< intm_ParameterRemovalQueue
 
ref array< intm_UpdatedParameters
 
ref map< int, ref PPEMatClassParameterCommandDatam_MaterialParamMapStructure
 

Detailed Description

Rain - PostProcessEffectType.Rain.

Definition at line 2 of file PPERain.c.

Member Function Documentation

◆ GetDefaultMaterialPath()

override string PPERain::GetDefaultMaterialPath ( )
inlineprivate

Definition at line 38 of file PPERain.c.

39 {
40 return "Graphics/Materials/postprocess/rain";
41 }

◆ GetPostProcessEffectID()

override int PPERain::GetPostProcessEffectID ( )
inlineprivate

Definition at line 33 of file PPERain.c.

34 {
35 return PostProcessEffectType.Rain;
36 }
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72

◆ RegisterMaterialParameters()

override void PPERain::RegisterMaterialParameters ( )
inlineprivate

Definition at line 43 of file PPERain.c.

44 {
45 RegisterParameterScalarFloat(PARAM_DROPDISTANCE, "DropDistance", 1.45, 0.0, 100.0);
46 RegisterParameterScalarFloat(PARAM_DROPSIZEX, "DropSizeX", 0.003, 0.0, 100.0);
47 RegisterParameterScalarFloat(PARAM_DROPSIZEY, "DropSizeY", 0.075, 0.0, 100.0);
48 RegisterParameterScalarFloat(PARAM_RAINFOGGINESS, "RainFogginess", 0.5, 0.0, 5.0);
49 RegisterParameterScalarFloat(PARAM_RAINDENSITY, "RainDensity", 1.0, 0.0, 5.0);
50 RegisterParameterScalarFloat(PARAM_FOGCOLORMULT, "FogColorMultiplier", 0.5, 0.0, 5.0);
51 RegisterParameterScalarFloat(PARAM_BCKGRNDCOLORMULT, "BackgroundColorMultiplier", 1.1, 0.0, 5.0);
52 RegisterParameterScalarFloat(PARAM_REFRACTIONSCALE, "RefractionScale", 0.01, 0.0, 1.0);
53 RegisterParameterScalarFloat(PARAM_SUNVISIBLE, "SunVisible", 1.0, 0.0, 1.0);
54 RegisterParameterScalarFloat(PARAM_GODRAYINTNEAR, "GodRayIntensityNear", 1.5, 0.0, 50.0);
55 RegisterParameterScalarFloat(PARAM_GODRAYINTFAR, "GodRayIntensityFar", 1.2, 0.0, 50.0);
56 RegisterParameterScalarFloat(PARAM_RIPPLESBLEND, "RipplesBlend", 50.0, 0.0, 250.0);
57 RegisterParameterScalarFloat(PARAM_RIPPLESDIST, "RipplesDist", 100.0, 0.0, 250.0);
58 RegisterParameterScalarFloat(PARAM_SPEED, "Speed", 10.0, 0.0, 50.0);
59 RegisterParameterScalarFloat(PARAM_DISTANTSPEED, "DistantSpeed", 16.0, 0.0, 100.0);
60 RegisterParameterScalarFloat(PARAM_WINDAFFECTSPEED, "WindAffectsSpeed", 0.02, 0.0, 10.0);
61 RegisterParameterScalarFloat(PARAM_MINDIVERGENCE, "MinDivergence", 0.005, 0.0, 1.0);
62 RegisterParameterScalarFloat(PARAM_MAXDIVERGENCE, "MaxDivergence", 0.03, 0.0, 1.0);
63 RegisterParameterScalarFloat(PARAM_WINDSPEEDFORMAXDIV, "WindSpeedForMaxDivergence", 10.0, 0.0, 100.0);
64
65 /*RegisterParameterTexture(PARAM_DROPREFRACTIONTEX,"DropRefractionTex","{3D95A4E49ACDDE5}graphics/textures/postprocess/drop_refraction.edds");
66 RegisterParameterTexture(PARAM_DISTANTTEX,"DistantTex","{3435F57626D5A6DB}graphics/textures/postprocess/raindistantmask.edds");
67 RegisterParameterTexture(PARAM_ROTNOISEMAP,"RotationNoiseMap","{7B4F4B4EE2566E84}graphics/textures/postprocess/noise.edds");
68 RegisterParameterTexture(PARAM_RIPPLEMAP,"RipplesMap","{59E25B3D2EB94B}graphics/textures/postprocess/ripple.edds");
69 RegisterParameterTexture(PARAM_MOVMAP,"MovableMap","{EBF63DBBED7D8}graphics/textures/postprocess/rainripplesmovable.edds");
70 RegisterParameterTexture(PARAM_MOVNOISEMAP,"MovableNoiseMap","{2E275BD75961FA54}graphics/textures/postprocess/rainripplesmovablenoise.edds");*/
71
72 //RegisterParameterResource(PARAM_SUNMASKMAT,"SunMaskMat","{FAF56DD689E895BE}Graphics/Materials/postprocess/godrayssunmask.emat");
73 }
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 ...
static const int PARAM_RAINFOGGINESS
Definition PPERain.c:7
static const int PARAM_DROPSIZEY
Definition PPERain.c:6
static const int PARAM_GODRAYINTFAR
Definition PPERain.c:14
static const int PARAM_RIPPLESBLEND
Definition PPERain.c:15
static const int PARAM_RAINDENSITY
Definition PPERain.c:8
static const int PARAM_SUNVISIBLE
Definition PPERain.c:12
static const int PARAM_WINDSPEEDFORMAXDIV
Definition PPERain.c:22
static const int PARAM_FOGCOLORMULT
Definition PPERain.c:9
static const int PARAM_SPEED
Definition PPERain.c:17
static const int PARAM_WINDAFFECTSPEED
Definition PPERain.c:19
static const int PARAM_RIPPLESDIST
Definition PPERain.c:16
static const int PARAM_MINDIVERGENCE
Definition PPERain.c:20
static const int PARAM_DISTANTSPEED
Definition PPERain.c:18
static const int PARAM_DROPSIZEX
Definition PPERain.c:5
static const int PARAM_REFRACTIONSCALE
Definition PPERain.c:11
static const int PARAM_GODRAYINTNEAR
Definition PPERain.c:13
static const int PARAM_DROPDISTANCE
Definition PPERain.c:4
static const int PARAM_BCKGRNDCOLORMULT
Definition PPERain.c:10
static const int PARAM_MAXDIVERGENCE
Definition PPERain.c:21

References PARAM_BCKGRNDCOLORMULT, PARAM_DISTANTSPEED, PARAM_DROPDISTANCE, PARAM_DROPSIZEX, PARAM_DROPSIZEY, PARAM_FOGCOLORMULT, PARAM_GODRAYINTFAR, PARAM_GODRAYINTNEAR, PARAM_MAXDIVERGENCE, PARAM_MINDIVERGENCE, PARAM_RAINDENSITY, PARAM_RAINFOGGINESS, PARAM_REFRACTIONSCALE, PARAM_RIPPLESBLEND, PARAM_RIPPLESDIST, PARAM_SPEED, PARAM_SUNVISIBLE, PARAM_WINDAFFECTSPEED, PARAM_WINDSPEEDFORMAXDIV, and PPEClassBase::RegisterParameterScalarFloat().

Member Data Documentation

◆ PARAM_BCKGRNDCOLORMULT

const int PPERain::PARAM_BCKGRNDCOLORMULT = 6
staticprivate

Definition at line 10 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_DISTANTSPEED

const int PPERain::PARAM_DISTANTSPEED = 14
staticprivate

Definition at line 18 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_DROPDISTANCE

const int PPERain::PARAM_DROPDISTANCE = 0
staticprivate

Definition at line 4 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_DROPSIZEX

const int PPERain::PARAM_DROPSIZEX = 1
staticprivate

Definition at line 5 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_DROPSIZEY

const int PPERain::PARAM_DROPSIZEY = 2
staticprivate

Definition at line 6 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_FOGCOLORMULT

const int PPERain::PARAM_FOGCOLORMULT = 5
staticprivate

Definition at line 9 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_GODRAYINTFAR

const int PPERain::PARAM_GODRAYINTFAR = 10
staticprivate

Definition at line 14 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_GODRAYINTNEAR

const int PPERain::PARAM_GODRAYINTNEAR = 9
staticprivate

Definition at line 13 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_MAXDIVERGENCE

const int PPERain::PARAM_MAXDIVERGENCE = 17
staticprivate

Definition at line 21 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_MINDIVERGENCE

const int PPERain::PARAM_MINDIVERGENCE = 16
staticprivate

Definition at line 20 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_RAINDENSITY

const int PPERain::PARAM_RAINDENSITY = 4
staticprivate

Definition at line 8 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_RAINFOGGINESS

const int PPERain::PARAM_RAINFOGGINESS = 3
staticprivate

Definition at line 7 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_REFRACTIONSCALE

const int PPERain::PARAM_REFRACTIONSCALE = 7
staticprivate

Definition at line 11 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_RIPPLESBLEND

const int PPERain::PARAM_RIPPLESBLEND = 11
staticprivate

Definition at line 15 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_RIPPLESDIST

const int PPERain::PARAM_RIPPLESDIST = 12
staticprivate

Definition at line 16 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_SPEED

const int PPERain::PARAM_SPEED = 13
staticprivate

Definition at line 17 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_SUNVISIBLE

const int PPERain::PARAM_SUNVISIBLE = 8
staticprivate

Definition at line 12 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_WINDAFFECTSPEED

const int PPERain::PARAM_WINDAFFECTSPEED = 15
staticprivate

Definition at line 19 of file PPERain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_WINDSPEEDFORMAXDIV

const int PPERain::PARAM_WINDSPEEDFORMAXDIV = 18
staticprivate

Definition at line 22 of file PPERain.c.

Referenced by RegisterMaterialParameters().


The documentation for this class was generated from the following file: