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

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

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

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

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 POSTPROCESS_OPTION_VALUE_LOW = 0
 
static const int POSTPROCESS_OPTION_VALUE_MEDIUM = 1
 
static const int POSTPROCESS_OPTION_VALUE_HIGH = 2
 
static const int POSTPROCESS_OPTION_VALUE_HIGHEST = 3
 
static const int PARAM_NUMPASSES = 0
 
static const int PARAM_INTENSITY = 1
 
static const int PARAM_RADIUSNEAR = 2
 
static const int PARAM_RADIUSFAR = 3
 
static const int PARAM_COSANGLE0 = 4
 
static const int PARAM_COSANGLE1 = 5
 
static const int PARAM_MAXDISTANCE = 6
 
static const int PARAM_MAXBLURDISTANCE = 7
 
static const int PARAM_NEARINTENSITY = 8
 
static const int PARAM_FARINTENSITY = 9
 
static const int PARAM_FARINTENSITYDIST = 10
 
static const int PARAM_NUMBLURPASSES = 11
 
static const int PARAM_BLURSIZE = 12
 
static const int PARAM_COLORAMOUNT = 13
 
static const int PARAM_COLORSSAOAMOUNT = 14
 

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

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

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

SSAO - PostProcessEffectType.SSAO.

Методы

◆ GetDefaultMaterialPath()

override string GetDefaultMaterialPath ( )
inlineprivate
31 {
32 //return "Graphics/Materials/postprocess/hbao"; //"default-default", with no option taken into account (c++)
34
35 ListOptionsAccess loa = ListOptionsAccess.Cast( options.GetOptionByType( OptionAccessType.AT_POSTPROCESS_EFFECTS ) );
36 string ret = "";
37 switch (loa.GetIndex())
38 {
40 ret = "Graphics/Materials/postprocess/hbao_low";
41 break;
42
44 ret = "Graphics/Materials/postprocess/hbao_medium";
45 break;
46
48 ret = "Graphics/Materials/postprocess/hbao_high";
49 break;
50
52 ret = "Graphics/Materials/postprocess/hbao_highest";
53 break;
54 }
55 return ret;
56 }
Definition gameplay.c:1455
static const int POSTPROCESS_OPTION_VALUE_LOW
Definition PPESSAO.c:4
static const int POSTPROCESS_OPTION_VALUE_MEDIUM
Definition PPESSAO.c:5
static const int POSTPROCESS_OPTION_VALUE_HIGHEST
Definition PPESSAO.c:7
static const int POSTPROCESS_OPTION_VALUE_HIGH
Definition PPESSAO.c:6
Definition EntityAI.c:95
OptionAccessType
C++ OptionAccessType.
Definition gameplay.c:1218

Перекрестные ссылки POSTPROCESS_OPTION_VALUE_HIGH, POSTPROCESS_OPTION_VALUE_HIGHEST, POSTPROCESS_OPTION_VALUE_LOW и POSTPROCESS_OPTION_VALUE_MEDIUM.

◆ GetPostProcessEffectID()

override int GetPostProcessEffectID ( )
inlineprivate
26 {
27 return PostProcessEffectType.SSAO;
28 }
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72

◆ RegisterMaterialParameters()

override void RegisterMaterialParameters ( )
inlineprivate
60 {
62 RegisterParameterScalarFloat(PARAM_INTENSITY,"Intensity",15.0,0.0,1000.0);
63 RegisterParameterScalarFloat(PARAM_RADIUSNEAR,"RadiusNear",60.0,0.0,200.0);
64 RegisterParameterScalarFloat(PARAM_RADIUSFAR,"RadiusFar",5.0,0.0,200.0);
65 RegisterParameterScalarFloat(PARAM_COSANGLE0,"CosAngle0",0.1,0.0,2.0);
66 RegisterParameterScalarFloat(PARAM_COSANGLE1,"CosAngle1",1.0,0.0,2.0);
67 RegisterParameterScalarFloat(PARAM_MAXDISTANCE,"MaxDistance",1.5,0.0,10000.0);
68 RegisterParameterScalarFloat(PARAM_MAXBLURDISTANCE,"MaxBlurDistance",0.2,0.0,10.0);
69 RegisterParameterScalarFloat(PARAM_NEARINTENSITY,"NearIntensity",0.2,0.0,1.0);
70 RegisterParameterScalarFloat(PARAM_FARINTENSITY,"FarIntensity",5.0,0.0,20.0);
71 RegisterParameterScalarFloat(PARAM_FARINTENSITYDIST,"FarIntensityDistance",20.0,0.0,1000.0);
73 RegisterParameterScalarInt(PARAM_BLURSIZE,"BlurSize",1.0,1.0,4.0);
74 RegisterParameterScalarFloat(PARAM_COLORAMOUNT,"ColorAmount",0.5,0.0,1.0);
75 RegisterParameterScalarFloat(PARAM_COLORSSAOAMOUNT,"ColorSsaoAmount",0.25,0.0,1.0);
76 }
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
Definition PPEMatClassesBase.c:67
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_RADIUSFAR
Definition PPESSAO.c:12
static const int PARAM_MAXBLURDISTANCE
Definition PPESSAO.c:16
static const int PARAM_COLORSSAOAMOUNT
Definition PPESSAO.c:23
static const int PARAM_NUMBLURPASSES
Definition PPESSAO.c:20
static const int PARAM_COSANGLE0
Definition PPESSAO.c:13
static const int PARAM_BLURSIZE
Definition PPESSAO.c:21
static const int PARAM_NEARINTENSITY
Definition PPESSAO.c:17
static const int PARAM_INTENSITY
Definition PPESSAO.c:10
static const int PARAM_MAXDISTANCE
Definition PPESSAO.c:15
static const int PARAM_COLORAMOUNT
Definition PPESSAO.c:22
static const int PARAM_FARINTENSITY
Definition PPESSAO.c:18
static const int PARAM_NUMPASSES
Definition PPESSAO.c:9
static const int PARAM_COSANGLE1
Definition PPESSAO.c:14
static const int PARAM_FARINTENSITYDIST
Definition PPESSAO.c:19
static const int PARAM_RADIUSNEAR
Definition PPESSAO.c:11

Перекрестные ссылки PARAM_BLURSIZE, PARAM_COLORAMOUNT, PARAM_COLORSSAOAMOUNT, PARAM_COSANGLE0, PARAM_COSANGLE1, PARAM_FARINTENSITY, PARAM_FARINTENSITYDIST, PARAM_INTENSITY, PARAM_MAXBLURDISTANCE, PARAM_MAXDISTANCE, PARAM_NEARINTENSITY, PARAM_NUMBLURPASSES, PARAM_NUMPASSES, PARAM_RADIUSFAR, PARAM_RADIUSNEAR, PPEClassBase::RegisterParameterScalarFloat() и PPEClassBase::RegisterParameterScalarInt().

Поля

◆ PARAM_BLURSIZE

const int PARAM_BLURSIZE = 12
staticprivate

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

◆ PARAM_COLORAMOUNT

const int PARAM_COLORAMOUNT = 13
staticprivate

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

◆ PARAM_COLORSSAOAMOUNT

const int PARAM_COLORSSAOAMOUNT = 14
staticprivate

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

◆ PARAM_COSANGLE0

const int PARAM_COSANGLE0 = 4
staticprivate

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

◆ PARAM_COSANGLE1

const int PARAM_COSANGLE1 = 5
staticprivate

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

◆ PARAM_FARINTENSITY

const int PARAM_FARINTENSITY = 9
staticprivate

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

◆ PARAM_FARINTENSITYDIST

const int PARAM_FARINTENSITYDIST = 10
staticprivate

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

◆ PARAM_INTENSITY

const int PARAM_INTENSITY = 1
staticprivate

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

◆ PARAM_MAXBLURDISTANCE

const int PARAM_MAXBLURDISTANCE = 7
staticprivate

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

◆ PARAM_MAXDISTANCE

const int PARAM_MAXDISTANCE = 6
staticprivate

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

◆ PARAM_NEARINTENSITY

const int PARAM_NEARINTENSITY = 8
staticprivate

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

◆ PARAM_NUMBLURPASSES

const int PARAM_NUMBLURPASSES = 11
staticprivate

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

◆ PARAM_NUMPASSES

const int PARAM_NUMPASSES = 0
staticprivate

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

◆ PARAM_RADIUSFAR

const int PARAM_RADIUSFAR = 3
staticprivate

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

◆ PARAM_RADIUSNEAR

const int PARAM_RADIUSNEAR = 2
staticprivate

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

◆ POSTPROCESS_OPTION_VALUE_HIGH

const int POSTPROCESS_OPTION_VALUE_HIGH = 2
staticprivate

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

◆ POSTPROCESS_OPTION_VALUE_HIGHEST

const int POSTPROCESS_OPTION_VALUE_HIGHEST = 3
staticprivate

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

◆ POSTPROCESS_OPTION_VALUE_LOW

const int POSTPROCESS_OPTION_VALUE_LOW = 0
staticprivate

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

◆ POSTPROCESS_OPTION_VALUE_MEDIUM

const int POSTPROCESS_OPTION_VALUE_MEDIUM = 1
staticprivate

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


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