Search Results for

    Show / Hide Table of Contents

    Class PostProcessEffect

    Custom PostFx which can modify final image by processing it with material based filters. The base class for all post process effects used by the graphics pipeline. Allows to extend frame rendering logic and apply custom effects such as outline, night vision, contrast etc.

    Inheritance
    System.Object
    Object
    SceneObject
    Script
    PostProcessEffect
    Implements
    ISerializable
    Inherited Members
    Script.OnAwake()
    Script.OnEnable()
    Script.OnDisable()
    Script.OnDestroy()
    Script.OnStart()
    Script.OnUpdate()
    Script.OnLateUpdate()
    Script.OnFixedUpdate()
    Script.OnLateFixedUpdate()
    Script.OnDebugDraw()
    Script.OnDebugDrawSelected()
    SceneObject.SetParent(Actor, Boolean)
    SceneObject.LinkPrefab(Guid, Guid)
    SceneObject.BreakPrefabLink()
    SceneObject.GetNamePath(Char)
    SceneObject.IsDuringPlay
    SceneObject.HasParent
    SceneObject.HasPrefabLink
    SceneObject.PrefabID
    SceneObject.PrefabObjectID
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public abstract class PostProcessEffect : Script, ISerializable
    Remarks

    Override this class and implement custom post fx logic. Use MainRenderTask.Instance.AddCustomPostFx(myPostFx) to attach your script to rendering or add script to camera actor.

    Constructors

    PostProcessEffect()

    Initializes a new instance of the PostProcessEffect.

    Declaration
    protected PostProcessEffect()

    Properties

    Location

    Effect rendering location within rendering pipeline.

    Declaration
    [EditorDisplay("Post Process Effect", null)]
    [ExpandGroups]
    [Unmanaged]
    public PostProcessEffectLocation Location { get; set; }
    Property Value
    PostProcessEffectLocation

    Order

    Effect rendering order. Post effects are sorted before rendering (from the lowest order to the highest order).

    Declaration
    [EditorDisplay("Post Process Effect", null)]
    [Unmanaged]
    public int Order { get; set; }
    Property Value
    System.Int32

    UseSingleTarget

    True whether use a single render target as both input and output. Use this if your effect doesn't need to copy the input buffer to the output but can render directly to the single texture. Can be used to optimize game performance.

    Declaration
    [EditorDisplay("Post Process Effect", null)]
    [Unmanaged]
    public bool UseSingleTarget { get; set; }
    Property Value
    System.Boolean

    Methods

    CanRender()

    Gets a value indicating whether this effect can be rendered.

    Declaration
    [Unmanaged]
    public virtual bool CanRender()
    Returns
    System.Boolean

    CanRender(RenderContext)

    Gets a value indicating whether this effect can be rendered.

    Declaration
    [Unmanaged]
    public virtual bool CanRender(RenderContext renderContext)
    Parameters
    RenderContext renderContext

    The target render context.

    Returns
    System.Boolean

    Render(GPUContext, ref RenderContext, GPUTexture, GPUTexture)

    Performs custom postFx rendering.

    Declaration
    [Unmanaged]
    public virtual void Render(GPUContext context, ref RenderContext renderContext, GPUTexture input, GPUTexture output)
    Parameters
    GPUContext context

    The GPU commands context.

    RenderContext renderContext

    The rendering context.

    GPUTexture input

    The input texture.

    GPUTexture output

    The output texture.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat