Lary Posted May 9, 2018 Share Posted May 9, 2018 Hi all, How I can make particles (in red color) visible with white background (scene.clearColor = new BABYLON.Color4(1,1,1,1))? Please find attached picture for details. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 9, 2018 Share Posted May 9, 2018 If you are using shapes, you could set the blend mode to standard: particleSystem.blendMode = BABYLON.ParticleSystem.BLENDMODE_STANDARD; As you will probably see, the behavior is different when setting the blend mode, but it will work with white background Lary 1 Quote Link to comment Share on other sites More sharing options...
Lary Posted May 9, 2018 Author Share Posted May 9, 2018 2 minutes ago, RaananW said: If you are using shapes, you could set the blend mode to standard: particleSystem.blendMode = BABYLON.ParticleSystem.BLENDMODE_STANDARD; As you will probably see, the behavior is different when setting the blend mode, but it will work with white background Thank you so much RaananW, it works!!! But the particle color seems bit different under the two modes. Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 9, 2018 Share Posted May 9, 2018 yep, a different blend mode deals with transparency a bit different. if you use an image it will look very weird, but with a shape it is somehow acceptable. Maybe someone else has a better suggestion 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.