Jump to content

Particle invisible in white background


Lary
 Share

Recommended Posts

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.

particle.png.4fcbd03621c7a642981dd0c12a8c3c92.png

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...