[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Graphics.BlitMultiTap.html [Back]  [Original]

Unity - Scripting API: Graphics.BlitMultiTap
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    Graphics.BlitMultiTap

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Declaration

    public static void BlitMultiTap(Texture source, RenderTexture dest, Material mat, params Vector2[] offsets);

    Declaration

    public static void BlitMultiTap(Texture source, RenderTexture dest, Material mat, int destDepthSlice, params Vector2[] offsets);

    Declaration

    public static void BlitMultiTap(Texture source, GraphicsTexture dest, Material mat, params Vector2[] offsets);

    Declaration

    public static void BlitMultiTap(Texture source, GraphicsTexture dest, Material mat, int destDepthSlice, params Vector2[] offsets);

    Parameters

    Parameter Description
    source Source texture.
    dest Destination RenderTexture, GraphicsTexture, or null to blit directly to screen.
    mat Material to use for copying. Material's shader should do some post-processing effect.
    offsets Variable number of filtering offsets. Offsets are given in pixels.
    destDepthSlice The texture array destination slice to blit to.

    Description

    Copies source texture into destination, for multi-tap shader.

    This is mostly used for implementing some post-processing effects. For example, Gaussian or iterative Cone blurring samples source texture at multiple different locations.

    BlitMultiTap sets dest to be the active render target (changing RenderTexture.active and GraphicsTexture.active), sets source as _MainTex property on the material, and draws a full-screen quad. Each vertex of the quad has multiple texture coordinates set up, offset by offsets pixels.

    BlitMultiTap has the same limitations as Graphics.Blit.

    Additional resources: Graphics.Blit, post-processing effects.


    Web Proxy Viewer  |  New URL  |  Original Page