You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple sprites to apply mask to each. each mask is same in its shape and only its positions is different from each other.
I'm currently using heaven.Sprite.maskSprite and "spriteMasked" plugin to apply mask to sprites and it seems masking for each sprite is done as single operation.
I hope I can apply mask to all those sprites in a single batch operation.
Is there any way that I can achieve this using pixi-heaven?
To help your understanding, these are things that I want to apply mask
so there would be a mask applied to each heart.
and currently mask is applied total 5 times, 1 for each heart
I assumed this by inspecting webgl drawing procedure
You can see that masking shader is applied 5 times in a single frame.
The text was updated successfully, but these errors were encountered:
Currently I avoided above problem by applying big single mask sprite to parent container of hearts. Every time the number of heart changes, I recreate the mask texture using RenderTexture.
I have multiple sprites to apply mask to each. each mask is same in its shape and only its positions is different from each other.
I'm currently using heaven.Sprite.maskSprite and "spriteMasked" plugin to apply mask to sprites and it seems masking for each sprite is done as single operation.
I hope I can apply mask to all those sprites in a single batch operation.
Is there any way that I can achieve this using pixi-heaven?
To help your understanding, these are things that I want to apply mask
so there would be a mask applied to each heart.
and currently mask is applied total 5 times, 1 for each heart
I assumed this by inspecting webgl drawing procedure
You can see that masking shader is applied 5 times in a single frame.
The text was updated successfully, but these errors were encountered: