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

FilmGrain - PostProcessEffectType.FilmGrain. More...

Inheritance diagram for PPEFilmGrain:
[legend]
Collaboration diagram for PPEFilmGrain:
[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_INTENSITY = 0
 
static const int PARAM_SHARPNESS = 1
 
static const int PARAM_GRAINSIZE = 2
 
static const int PARAM_INTENSITYX0 = 3
 
static const int PARAM_INTENSITYX1 = 4
 
static const int PARAM_MONOCHROMATIC = 5
 
static const int PARAM_SIMPLE = 6
 
static const int PARAM_DISTORT = 7
 
static const int PARAM_FREQUENCY = 8
 
static const int L_1_NVG = 100
 
static const int L_1_TOXIC_TINT = 200
 
static const int L_2_NVG = 100
 
static const int L_2_TOXIC_TINT = 200
 

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

FilmGrain - PostProcessEffectType.FilmGrain.

Be advised, for this to take any effect, 'g_Game.NightVissionLightParams' needs to have non-zero 'noiseIntensity' parameter. /note set by 'PPELightIntensityParamsNative.PARAM_NOISE_MULT' currently

Definition at line 6 of file PPEFilmGrain.c.

Member Function Documentation

◆ GetDefaultMaterialPath()

override string PPEFilmGrain::GetDefaultMaterialPath ( )
inlineprivate

Definition at line 29 of file PPEFilmGrain.c.

30 {
31 return "Graphics/Materials/postprocess/filmgrainNV"; //TODO - differentiate between filmgrainNV?
32 }

◆ GetPostProcessEffectID()

override int PPEFilmGrain::GetPostProcessEffectID ( )
inlineprivate

Definition at line 24 of file PPEFilmGrain.c.

25 {
26 return PostProcessEffectType.FilmGrain;
27 }
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72

◆ RegisterMaterialParameters()

override void PPEFilmGrain::RegisterMaterialParameters ( )
inlineprivate

Definition at line 34 of file PPEFilmGrain.c.

35 {
36 RegisterParameterScalarFloat(PARAM_INTENSITY, "Intensity", 0.0, 0.0, 1.0);
37 RegisterParameterScalarFloat(PARAM_SHARPNESS, "Sharpness", 2.35, 0.0, 20.0);
38 RegisterParameterScalarFloat(PARAM_GRAINSIZE, "GrainSize", 2.75, 1.0, 9.0);
39 RegisterParameterScalarFloat(PARAM_INTENSITYX0, "IntensityX0", 0.0, 0.0, 1.0);
40 RegisterParameterScalarFloat(PARAM_INTENSITYX1, "IntensityX1", 0.0, 0.0, 1.0);
44 RegisterParameterScalarFloat(PARAM_FREQUENCY, "Frequency", 20.0, 1.0, 1000.0);
45 //RegisterParameterTexture(PARAM_NOISEMAP,"NoiseMap","{0B1C7AEDC4645C8A}System/textures/noise.edds");
46 }
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 RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
static const int PARAM_SHARPNESS
Definition PPEFilmGrain.c:9
static const int PARAM_SIMPLE
static const int PARAM_INTENSITY
Definition PPEFilmGrain.c:8
static const int PARAM_MONOCHROMATIC
static const int PARAM_INTENSITYX1
static const int PARAM_GRAINSIZE
static const int PARAM_DISTORT
static const int PARAM_FREQUENCY
static const int PARAM_INTENSITYX0

References PARAM_DISTORT, PARAM_FREQUENCY, PARAM_GRAINSIZE, PARAM_INTENSITY, PARAM_INTENSITYX0, PARAM_INTENSITYX1, PARAM_MONOCHROMATIC, PARAM_SHARPNESS, PARAM_SIMPLE, PPEClassBase::RegisterParameterScalarBool(), and PPEClassBase::RegisterParameterScalarFloat().

Member Data Documentation

◆ L_1_NVG

const int PPEFilmGrain::L_1_NVG = 100
staticprivate

Definition at line 19 of file PPEFilmGrain.c.

Referenced by PPERequester_GameplayBase::SetNVMode().

◆ L_1_TOXIC_TINT

const int PPEFilmGrain::L_1_TOXIC_TINT = 200
staticprivate

Definition at line 20 of file PPEFilmGrain.c.

Referenced by PPERequester_GameplayBase::OnStart().

◆ L_2_NVG

const int PPEFilmGrain::L_2_NVG = 100
staticprivate

Definition at line 21 of file PPEFilmGrain.c.

Referenced by PPERequester_GameplayBase::SetNVMode().

◆ L_2_TOXIC_TINT

const int PPEFilmGrain::L_2_TOXIC_TINT = 200
staticprivate

Definition at line 22 of file PPEFilmGrain.c.

Referenced by PPERequester_GameplayBase::OnStart().

◆ PARAM_DISTORT

const int PPEFilmGrain::PARAM_DISTORT = 7
staticprivate

Definition at line 15 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_FREQUENCY

const int PPEFilmGrain::PARAM_FREQUENCY = 8
staticprivate

Definition at line 16 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_GRAINSIZE

const int PPEFilmGrain::PARAM_GRAINSIZE = 2
staticprivate

◆ PARAM_INTENSITY

const int PPEFilmGrain::PARAM_INTENSITY = 0
staticprivate

Definition at line 8 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_INTENSITYX0

const int PPEFilmGrain::PARAM_INTENSITYX0 = 3
staticprivate

Definition at line 11 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_INTENSITYX1

const int PPEFilmGrain::PARAM_INTENSITYX1 = 4
staticprivate

Definition at line 12 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_MONOCHROMATIC

const int PPEFilmGrain::PARAM_MONOCHROMATIC = 5
staticprivate

Definition at line 13 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().

◆ PARAM_SHARPNESS

const int PPEFilmGrain::PARAM_SHARPNESS = 1
staticprivate

◆ PARAM_SIMPLE

const int PPEFilmGrain::PARAM_SIMPLE = 6
staticprivate

Definition at line 14 of file PPEFilmGrain.c.

Referenced by RegisterMaterialParameters().


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