Sparrow-Framework icon indicating copy to clipboard operation
Sparrow-Framework copied to clipboard

All photoshop blend modes.

Open hovox opened this issue 12 years ago • 4 comments

hovox avatar Jun 13 '13 10:06 hovox

Are we talking about Sparrow 2.0 or 1.x? (I know this is the 1.x repository, but I just saw that I accidentally deactivated the "issues" feature in the 2.0 repository -- just changed that.)

Because in Sparrow 2.0, there are blend modes -- not all from PhotoShop, but all that can be implemented with OpenGL blend modes. Have you seen that?

http://doc.sparrow-framework.org/v2/Classes/SPDisplayObject.html#//api/name/blendMode

e.g.

object.blendMode = SP_BLEND_MODE_MULTIPLY;

PrimaryFeather avatar Jun 13 '13 10:06 PrimaryFeather

Sorry, I tried to delete from this and add to sparrow 2.0 this issue after saw that this is a Sparrow 1.x. I'm talking about 2.0 version, and yes I saw native blend bodes, but we need other blend modes too, actually our application is not the game, but image editor. Also it would be nice and very usable to have future to add custom shader to DisplayObject.

hovox avatar Jun 13 '13 10:06 hovox

We added custom blend modes into SPQuadBatch, it uses native blend modes if can, otherwise uses our custom shader to do that, we can pull this.

hovox avatar Jun 13 '13 10:06 hovox

OK, I see what you mean! Yes, it would be great if I could have a look at the code! Even though I can't promise anything about if and when it can be added.

Thanks in advance!

PrimaryFeather avatar Jun 13 '13 10:06 PrimaryFeather