返回介绍

Graphics.BlitMultiTap 多重位块传送

发布于 2019-12-18 15:37:44 字数 2111 浏览 1041 评论 0 收藏 0

JavaScript => public static function BlitMultiTap(source: Texture, dest: RenderTexture, mat: Material, params offsets: Vector2[]): void;
C# => public static void BlitMultiTap(Texture source, RenderTexture dest, Material mat, params Vector2[] offsets);

Parameters 参数

ourceSource texture.
destDestination RenderTexture, or null to blit directly to screen.
matMaterial to use for copying. Material's shader should do some post-processing effect.
offsetsVariable number of filtering offsets. Offsets are given in pixels.

Description 描述

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

拷贝源纹理到目的渲染纹理,用于multi-tap着色器。

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

这主要是用于实现图像效果。例如,高斯或迭代锥形模糊取样源纹理在多个不同的位置。

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.

BlitMultiTap设置dest到激活的渲染纹理,在材质上设置source作为_MainTex属性,并且绘制一个全屏方块,方块的每个点有多个纹理坐标,通过offsets像素偏移。

graphics

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文