闪存中具有多个输出的像素弯曲器着色器?

发布于 2024-08-27 05:32:18 字数 152 浏览 5 评论 0原文

根据像素弯曲器规范,着色器可以有一个或多个输出。像素弯曲器工具包的“导出到闪存”选项往往对闪存特定的注意事项非常严格,甚至可以毫无怨言地编译这样的着色器。

然而,actionscript 的着色器相关类似乎适合单输出着色器。有什么办法可以在Flash中拥有多个着色器输出吗?

According to the pixel bender specs a shader can have one or more outputs. The pixel bender toolkit, whose "export to flash" option tends to be preety strict about the flash specific do's and dont's, would even compile such a shader without complaints.

However actionscript's shader related classes seem to be geared toward single output shaders. Is there any way to have multiple shader outputs in flash?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落日海湾 2024-09-03 05:32:18

有一些解决方法,按从最简单到最难的顺序列出。

1) 使用不同的通道(如果有灰度输出)

2) 将输出宽度加倍,然后在 bitmapData 上执行 copyRect 将它们分开。 (假设这就是你正在使用的)

3)我还没有尝试过这个,但它显示出一些希望,并且最接近你想要的:
使用像素弯曲器汇编器指定两个输出。更多信息在这里:
http://www.adobe.com/devnet/flex/articles/flashbuilder4_pixelbender_06。 html
http://www.ncannasse.fr/projects/pbj (Haxe 特定的,但有有用的一般信息)

There are some workarounds, listed from easiest to hardest.

1) Use different channels (if you have grey-scale outputs)

2) Double the output width, then do copyRect on the bitmapData to separate them. (assuming that's what you're using)

3) I haven't tried this yet, but it shows some promise, and is the closest to what you want:
Use pixel bender assembler to specify two outputs. More info is here:
http://www.adobe.com/devnet/flex/articles/flashbuilder4_pixelbender_06.html
http://www.ncannasse.fr/projects/pbj (Haxe-specific, but has useful general info)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文