Version: 2023.2
言語: 日本語
public static void BlitMultiTap (Texture source, RenderTexture dest, Material mat, params Vector2[] offsets);
public static void BlitMultiTap (Texture source, RenderTexture dest, Material mat, int destDepthSlice, params Vector2[] offsets);
public static void BlitMultiTap (Texture source, Rendering.GraphicsTexture dest, Material mat, params Vector2[] offsets);
public static void BlitMultiTap (Texture source, Rendering.GraphicsTexture dest, Material mat, int destDepthSlice, params Vector2[] offsets);

パラメーター

source ソーステクスチャ (コピー元のテクスチャ)
dest Destination RenderTexture, GraphicsTexture, or null to blit directly to screen.
mat コピーに使用するマテリアル。マテリアルのシェーダーはいくつかの後処理のエフェクトを行う必要があります。
offsets フィルタリングオフセットの変数の番号。オフセットはピクセル単位です。
destDepthSlice The texture array destination slice to blit to.

説明

マルチタップシェーダーの元のテクスチャをコピー先にコピーします。

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.