言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

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

Sumbission failed

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

Close

Cancel

public static function BlitMultiTap(source: Texture, dest: RenderTexture, mat: Material, params offsets: Vector2[]): void;
public static void BlitMultiTap(Texture source, RenderTexture dest, Material mat, params Vector2[] offsets);
public static def BlitMultiTap(source as Texture, dest as RenderTexture, mat as Material, *offsets as Vector2[]) as void

Parameters

source コピー元の画像
dest コピー先の RenderTexture オブジェクト。 null の場合、直接画面に転送する
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.

Description

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

This is mostly used for implementing some image effects. For example, Gaussian or iterative Cone blurring samples source texture at multiple different locations. Requires Unity Pro. BlitMultiTap sets dest to be active render texture, 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. See Also: Graphics.Blit, image effects.