docs.unity3d.com
    Show / Hide Table of Contents

    Class TemporalAntialiasing

    This class holds settings for the Temporal Anti-aliasing (TAA) effect.

    Inheritance
    Object
    TemporalAntialiasing
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    public sealed class TemporalAntialiasing : object

    Fields

    jitteredMatrixFunc

    Sets a custom function that will be called to generate the jittered projection matrice.

    Declaration
    public Func<Camera, Vector2, Matrix4x4> jitteredMatrixFunc
    Field Value
    Type Description
    Func<Camera, Vector2, Matrix4x4>

    jitterSpread

    The diameter (in texels) inside which jitter samples are spread. Smaller values result in crisper but more aliased output, while larger values result in more stable but blurrier output.

    Declaration
    public float jitterSpread
    Field Value
    Type Description
    Single

    motionBlending

    The blend coefficient for a fragment with significant motion. Controls the percentage of history sample blended into the final color.

    Declaration
    public float motionBlending
    Field Value
    Type Description
    Single

    sharpness

    Controls the amount of sharpening applied to the color buffer. High values may introduce dark-border artifacts.

    Declaration
    public float sharpness
    Field Value
    Type Description
    Single

    stationaryBlending

    The blend coefficient for a stationary fragment. Controls the percentage of history sample blended into the final color.

    Declaration
    public float stationaryBlending
    Field Value
    Type Description
    Single

    Properties

    jitter

    The current jitter amount

    Declaration
    public Vector2 jitter { get; }
    Property Value
    Type Description
    Vector2

    sampleIndex

    The current sample index.

    Declaration
    public int sampleIndex { get; }
    Property Value
    Type Description
    Int32

    Methods

    ConfigureJitteredProjectionMatrix(PostProcessRenderContext)

    Prepares the jittered and non jittered projection matrices.

    Declaration
    public void ConfigureJitteredProjectionMatrix(PostProcessRenderContext context)
    Parameters
    Type Name Description
    PostProcessRenderContext context

    The current post-processing context.

    ConfigureStereoJitteredProjectionMatrices(PostProcessRenderContext)

    Prepares the jittered and non jittered projection matrices for stereo rendering.

    Declaration
    public void ConfigureStereoJitteredProjectionMatrices(PostProcessRenderContext context)
    Parameters
    Type Name Description
    PostProcessRenderContext context

    The current post-processing context.

    GetJitteredProjectionMatrix(Camera)

    Generates a jittered projection matrix for a given camera.

    Declaration
    public Matrix4x4 GetJitteredProjectionMatrix(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera to get a jittered projection matrix for.

    Returns
    Type Description
    Matrix4x4

    A jittered projection matrix.

    IsSupported()

    Returns true if the effect is currently enabled and supported.

    Declaration
    public bool IsSupported()
    Returns
    Type Description
    Boolean

    true if the effect is currently enabled and supported

    In This Article
    • Fields
      • jitteredMatrixFunc
      • jitterSpread
      • motionBlending
      • sharpness
      • stationaryBlending
    • Properties
      • jitter
      • sampleIndex
    • Methods
      • ConfigureJitteredProjectionMatrix(PostProcessRenderContext)
      • ConfigureStereoJitteredProjectionMatrices(PostProcessRenderContext)
      • GetJitteredProjectionMatrix(Camera)
      • IsSupported()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023