ChenXin Posted September 19, 2019 Share Posted September 19, 2019 I am trying to apply AdvancedBloomFilter to a sprite, but now the filter is applied to the entire sprite(even the transparent pixel). Is there any way to just apply the AdvancedBloomFilter to the colored pixels? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 19, 2019 Share Posted September 19, 2019 AdvancedBloomFilter is a multi-pass filter, you have to go inside it and modify it that way in last step it . If you are not ready to dig into filters, shaders and the harder part - multi-pass filters - dont go there. As for why bloom and other filters are applied to transparent too - that's how it works everywhere. Workaround without direct usage of custom filter: render container into renderTexture, apply bloomFilter to sprite and a mask it with itself. However you'll need to mask only alpha stuff , that's not included in pixi vanilla package - you'll have to modify SpriteMaskFilter anyway, I published workarounds before but i dont have time to search for them now. If you explain why exactly do you need such thing and whether you are ready to wait when someone does it, we can think of something Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.