Merging blended layers (pixel bender blends)
I've been building a ton of blend modes in pixel bender for a graphics library. To use them within flash, I can use the DisplayObject.blendShader and the result is displayed to the screen.
This is all great, but it doesnt let me use the result as a single bitmap that can be processed further. I know its possible to draw a bitmapdata on top of another and apply a blend mode using BitmapData.draw(), but it only supports strings that represent the native blend modes.
How would I go about merging two bitmapDatas using pixel bender shaders blends?
Thanks!,
Julien Iafrancesco