class PPEClassBaseSource
View all 28 descendants
- PPEChromAber
- PPEColorGrading
- PPEColors
- PPEDepthOfField
- PPEDistort
- PPEDOF
- PPEDynamicBlur
- PPEExposureNative
- PPEEyeAccomodationNative
- PPEFilmGrain
- PPEFXAA
- PPEGaussFilter
- PPEGhost
- PPEGlow
- PPEGodRays
- PPEHBAO
- PPELightIntensityParamsNative
- PPEMedian
- PPENone
- PPERadialBlur
- PPERain
- PPERotBlur
- PPESMAA
- PPESnowfall
- PPESSAO
- PPESunMask
- PPEUnderWater
- PPEWetDistort
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Constructors 1
void PPEClassBase(string mat_path_override = "")Show 1 more
, RegisterMaterialParameters()Members 7
protected PPEManager m_Managerprotected string m_MaterialPath = ""Show 1 more
, Init()protected Material m_MaterialShow 1 more
, SetFinalParameterValue()Show 1 more
, SetParameterUpdating()Show 2 more
, PPEDOF.ApplyValueChanges(), and PPELightIntensityParamsNative.ApplyValueChanges()protected ref map<int,ref PPEMatClassParameterCommandData> m_MaterialParamMapStructureparam_idx, <ParamData>>
Methods 29
protected void Init(string mat_path_override = "")Show 1 more
, m_MaterialPathprotected void CreateMaterial()protected void CreateDataStructure()Show 1 more
, m_UpdatedParametersprotected void RegisterMaterialParameters()inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)
protected void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)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 the renderer can handle! When in doubt, try some higher/lower values...
Show 19 more
, PPEDistort.RegisterMaterialParameters(), PPEDOF.RegisterMaterialParameters(), PPEDynamicBlur.RegisterMaterialParameters(), PPEExposureNative.RegisterMaterialParameters(), PPEEyeAccomodationNative.RegisterMaterialParameters(), PPEFilmGrain.RegisterMaterialParameters(), PPEGaussFilter.RegisterMaterialParameters(), PPEGhost.RegisterMaterialParameters(), PPEGlow.RegisterMaterialParameters(), PPEGodRays.RegisterMaterialParameters(), PPEHBAO.RegisterMaterialParameters(), PPELightIntensityParamsNative.RegisterMaterialParameters(), PPERadialBlur.RegisterMaterialParameters(), PPERain.RegisterMaterialParameters(), PPERotBlur.RegisterMaterialParameters(), PPESnowfall.RegisterMaterialParameters(), PPESSAO.RegisterMaterialParameters(), PPEUnderWater.RegisterMaterialParameters(), and PPEWetDistort.RegisterMaterialParameters()protected 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...
protected 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...
protected 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 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
generic update method, take care when overriding!
Show 10 more
, map.Get(), Get(), GetPostProcessEffectID(), PPEManager.InsertUpdatedMaterial(), InsertUpdatedParameter(), ParamUpdateQueueCleanup(), Update(), m_Manager, m_MaterialParamMapStructure, and m_ParameterUpdateQueueMapvoid 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()Show 2 more
, SetFinalParameterValue(), and m_UpdatedParametersprotected void InsertUpdatedParameter(int mat_id)void ParamUpdateRemove(int parameter_idx)Queue selected parameter for removal from the update queue
Queue specific parameter of this material to update
Show 3 more
, Insert(), map.Set(), and m_ParameterUpdateQueueMapprotected void ParamUpdateQueueCleanup(int order)Show 4 more
, map.Get(), Get(), m_ParameterRemovalQueue, and m_ParameterUpdateQueueMapstring 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)