Blend modes like in a raster graphics editor #2804
Replies: 1 comment 8 replies
-
Hi @ikiselev1989 sorry this fell off my radar! You might be able to get the control you want to apply different color blend modes by using Materials, but you'll need to provide a custom shader. https://excaliburjs.com/docs/material/ I think it would be a good feature to add to excalibur in general. Perhaps we can pass an attribute down to the current sprite shader? I'll need to double check this is possible with the current blend setup, but worth a try! export enum BlendMode {
Add = 'add',
Multiply = 'multiply',
...
} Then on an individual graphic we can add a const sprite = new ex.Sprite(...);
sprite.blendMode = BlendMode.Multiply; We'd need to update the |
Beta Was this translation helpful? Give feedback.
-
Hi community!
I didn't find this feature. It will be nice to have ability to set blend mode for sprites - ADD, MULTIPLY etc. Like in Photoshop.
I have researched a little and can to try to implement it if you give me a little help for start :) this is my first try in open source contributing.
Beta Was this translation helpful? Give feedback.
All reactions