DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PPEDepthOfField

DepthOfField - PostProcessEffectType.DepthOfField. Подробнее...

+ Граф наследования:PPEDepthOfField:

Закрытые члены

override int GetPostProcessEffectID ()
 
override string GetDefaultMaterialPath ()
 
override void RegisterMaterialParameters ()
 
- Закрытые члены унаследованные от 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 const int PARAM_DOFLQ = 0
 
static const int PARAM_FOCALDISTANCE = 1
 
static const int PARAM_HYPERFOCAL = 2
 
static const int PARAM_FOCALOFFSET = 3
 
static const int PARAM_BLURFACTOR = 4
 
static const int PARAM_SIMPLEDOF = 5
 
static const int PARAM_SIMPLEHFNEAR = 6
 
static const int PARAM_SIMPLEDOFSIZE = 7
 
static const int PARAM_SIMPLEDOFGAUSS = 8
 

Дополнительные унаследованные члены

- Закрытые данные унаследованные от 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
 

Подробное описание

DepthOfField - PostProcessEffectType.DepthOfField.

Методы

◆ GetDefaultMaterialPath()

override string GetDefaultMaterialPath ( )
inlineprivate
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 }
Definition EntityAI.c:95

◆ GetPostProcessEffectID()

override int GetPostProcessEffectID ( )
inlineprivate
16 {
17 return PostProcessEffectType.DepthOfField;
18 }
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72

◆ RegisterMaterialParameters()

override void RegisterMaterialParameters ( )
inlineprivate
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);
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 }
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
Definition PPEMatClassesBase.c:67
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
Definition PPEMatClassesBase.c:59
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
static const int PARAM_SIMPLEHFNEAR
Definition PPEDepthOfField.c:11
static const int PARAM_BLURFACTOR
Definition PPEDepthOfField.c:9
static const int PARAM_DOFLQ
Definition PPEDepthOfField.c:5
static const int PARAM_FOCALDISTANCE
Definition PPEDepthOfField.c:6
static const int PARAM_SIMPLEDOF
Definition PPEDepthOfField.c:10
static const int PARAM_SIMPLEDOFGAUSS
Definition PPEDepthOfField.c:13
static const int PARAM_SIMPLEDOFSIZE
Definition PPEDepthOfField.c:12
static const int PARAM_FOCALOFFSET
Definition PPEDepthOfField.c:8
static const int PARAM_HYPERFOCAL
Definition PPEDepthOfField.c:7

Перекрестные ссылки PARAM_BLURFACTOR, PARAM_DOFLQ, PARAM_FOCALDISTANCE, PARAM_FOCALOFFSET, PARAM_HYPERFOCAL, PARAM_SIMPLEDOF, PARAM_SIMPLEDOFGAUSS, PARAM_SIMPLEDOFSIZE, PARAM_SIMPLEHFNEAR, PPEClassBase::RegisterParameterScalarBool(), PPEClassBase::RegisterParameterScalarFloat() и PPEClassBase::RegisterParameterScalarInt().

Поля

◆ PARAM_BLURFACTOR

const int PARAM_BLURFACTOR = 4
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_DOFLQ

const int PARAM_DOFLQ = 0
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_FOCALDISTANCE

const int PARAM_FOCALDISTANCE = 1
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_FOCALOFFSET

const int PARAM_FOCALOFFSET = 3
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_HYPERFOCAL

const int PARAM_HYPERFOCAL = 2
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_SIMPLEDOF

const int PARAM_SIMPLEDOF = 5
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_SIMPLEDOFGAUSS

const int PARAM_SIMPLEDOFGAUSS = 8
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_SIMPLEDOFSIZE

const int PARAM_SIMPLEDOFSIZE = 7
staticprivate

Используется в RegisterMaterialParameters().

◆ PARAM_SIMPLEHFNEAR

const int PARAM_SIMPLEHFNEAR = 6
staticprivate

Используется в RegisterMaterialParameters().


Объявления и описания членов класса находятся в файле: