Saeki Amae Posted August 8, 2020 Share Posted August 8, 2020 Hello! I have such problem - few of my graphics objects of the alpha level 0.10 when they overlay each others their alphas add so visually the overlaying area is less transparent than others. How to make the alpha levels kept on same level no matter how many objects overlay each others? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 8, 2020 Share Posted August 8, 2020 render them with alpha=1.0 in renderTexture, or in a filter, anyway it should be another framebuffer. then this framebuffer has to be applied with alpha=0.1 , whether its AlphaFilter , or sprite with renderTexture that has alpha=0.1 Quote Link to comment Share on other sites More sharing options...
Saeki Amae Posted August 8, 2020 Author Share Posted August 8, 2020 Is that the only way? Those semi transparent objects may switch position even every frame - creating new textures or filters every frame may not be to good idea right? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 8, 2020 Share Posted August 8, 2020 you dont need to create new one, you can reuse old. Also, with filters, you dont even need to store the texture, its all automatical. Just assign "container.filters=[new PIXI.filters.AlphaFilter(0.1)];" Saeki Amae 1 Quote Link to comment Share on other sites More sharing options...
Saeki Amae Posted August 9, 2020 Author Share Posted August 9, 2020 Ok! 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.