Class PostFxVolume
A special type of volume that blends custom set of post process settings into the rendering.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Level/Actors/PostFxVolume.h
Syntax
public class PostFxVolume : public BoxVolume, public IPostFxSettingsProvider
Fields
AmbientOcclusion
The ambient occlusion effect settings.
Declaration
public AmbientOcclusionSettings AmbientOcclusion
Field Value
|
AmbientOcclusionSettings
|
AntiAliasing
The anti-aliasing effect settings.
Declaration
public AntiAliasingSettings AntiAliasing
Field Value
|
AntiAliasingSettings
|
Bloom
CameraArtifacts
The camera artifacts effect settings.
Declaration
public CameraArtifactsSettings CameraArtifacts
Field Value
|
CameraArtifactsSettings
|
ColorGrading
The color grading effect settings.
Declaration
public ColorGradingSettings ColorGrading
Field Value
|
ColorGradingSettings
|
DepthOfField
The depth of field effect settings.
Declaration
public DepthOfFieldSettings DepthOfField
Field Value
|
DepthOfFieldSettings
|
EyeAdaptation
The eye adaptation effect settings.
Declaration
public EyeAdaptationSettings EyeAdaptation
Field Value
|
EyeAdaptationSettings
|
GlobalIllumination
The Global Illumination effect settings.
Declaration
public GlobalIlluminationSettings GlobalIllumination
Field Value
|
GlobalIlluminationSettings
|
LensFlares
The lens flares effect settings.
Declaration
public LensFlaresSettings LensFlares
Field Value
|
LensFlaresSettings
|
MotionBlur
The motion blur effect settings.
Declaration
public MotionBlurSettings MotionBlur
Field Value
|
MotionBlurSettings
|
PostFxMaterials
The PostFx materials rendering settings.
Declaration
public PostFxMaterialsSettings PostFxMaterials
Field Value
|
PostFxMaterialsSettings
|
ScreenSpaceReflections
The screen space reflections effect settings.
Declaration
public ScreenSpaceReflectionsSettings ScreenSpaceReflections
Field Value
|
ScreenSpaceReflectionsSettings
|
ToneMapping
The tone mapping effect settings.
Declaration
public ToneMappingSettings ToneMapping
Field Value
|
ToneMappingSettings
|
Methods
AddPostFxMaterial(MaterialBase* material)
Adds the post fx material to the settings.
Declaration
public void AddPostFxMaterial(MaterialBase* material)
Parameters
|
MaterialBase
material
The material. |
Blend(PostProcessSettings& other, float weight)
Blends the object settings to the given settings using given weight.
Declaration
public virtual void Blend(PostProcessSettings& other, float weight) override
Parameters
|
PostProcessSettings
other
The other settings to blend to. |
|
float
weight
The blending weight (normalized to 0-1 range). |
Overrides
Collect(RenderContext& renderContext)
Collects the settings for rendering of the specified task.
Declaration
public virtual void Collect(RenderContext& renderContext) override
Parameters
|
RenderContext
renderContext
The rendering context. |
Overrides
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
|
DeserializeStream
stream
The input stream. |
|
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
GetBlendRadius()
Gets the distance inside the volume at which blending with the volume's settings occurs.
Declaration
public float GetBlendRadius() const
Returns
|
float
|
GetBlendWeight()
Gets the amount of influence the volume's properties have. 0 is no effect; 1 is full effect.
Declaration
public float GetBlendWeight() const
Returns
|
float
|
GetIsBounded()
Gets the value indicating whether the bounds of the volume are taken into account. If false, the volume affects the entire world, regardless of its bounds. If true, the volume only has an effect within its bounds.
Declaration
public bool GetIsBounded() const
Returns
|
bool
|
GetPriority()
Gets the order in which multiple volumes are blended together. The volume with the highest priority takes precedence over all other overlapping volumes.
Declaration
public int32 GetPriority() const
Returns
|
int32
|
GetWiresColor()
HasContentLoaded()
Returns true if actor has loaded content.
Declaration
public virtual bool HasContentLoaded() const override
Returns
|
bool
|
Overrides
OnDisable()
Called when actor gets removed from game systems. Occurs on EndPlay event or when actor gets inactivated in hierarchy. Use this event to unregister object from other game system (eg. audio).
Declaration
protected virtual void OnDisable() override
Overrides
OnEnable()
Called when actor gets added to game systems. Occurs on BeginPlay event or when actor gets activated in hierarchy. Use this event to register object to other game system (eg. audio).
Declaration
protected virtual void OnEnable() override
Overrides
RemovePostFxMaterial(MaterialBase* material)
Removes the post fx material from the settings.
Declaration
public void RemovePostFxMaterial(MaterialBase* material)
Parameters
|
MaterialBase
material
The material. |
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
|
SerializeStream
stream
The output stream. |
|
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
SetBlendRadius(float value)
Sets the distance inside the volume at which blending with the volume's settings occurs.
Declaration
public void SetBlendRadius(float value)
Parameters
|
float
value
|
SetBlendWeight(float value)
Sets the amount of influence the volume's properties have. 0 is no effect; 1 is full effect.
Declaration
public void SetBlendWeight(float value)
Parameters
|
float
value
|
SetIsBounded(bool value)
Sets the value indicating whether the bounds of the volume are taken into account. If false, the volume affects the entire world, regardless of its bounds. If true, the volume only has an effect within its bounds.
Declaration
public void SetIsBounded(bool value)
Parameters
|
bool
value
|
Returns
|
void
|
SetPriority(int32 value)
Sets the order in which multiple volumes are blended together. The volume with the highest priority takes precedence over all other overlapping volumes.
Declaration
public void SetPriority(int32 value)
Parameters
|
int32
value
|
Returns
|
void
|