Multiple flash pixel shaders?

According to the specifications of pixel detectors, a shader can have one or more outputs. A pixel bend toolkit, whose export to flash option tends to be strict on specific do and dont flash files, would even compile such a shader without complaints.

However, classes associated with ActionScript shaders seem to target single output shaders. Is there a way to have multiple shader outputs in flash?

+7
flash flash-cs4 actionscript-3 shader pixel-bender
source share
1 answer

There are some workarounds listed from the simplest and most complex.

1) Use different channels (if you have gray scale outputs)

2) Double the width of the output and then copyRect to bitmapData to split them. (assuming you are using)

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

+3
source share

All Articles