Nawar
June 13, 2023, 12:01pm
1
Hi all!
In this example, I would like to make the particles black (they are now the default blue).
There is already a solution in this thread. You need to change the blendMode . But in this case, all particles will become black squares, and I do not need this.
Does anyone has am example of falling stars crossing the screen fom left to right? Im trying to learn particles, but they dont apear in my scene, idk what im doing.
But they are not showing in black color on screen. I wish i had nice black particles, as looking like a falling star. But they dont show to get black.
Thats the particle i`m using:
[particle]
this.particleSystem.particleTexture = new Texture("./../res/particle.png", this.scene);
this.particleSystem.textureMask = …
How to make particles black?
Hello!
The problem with blending in this example is because the particle texture doesn’t have transparency:
If you change the texture to one that does have transparency:
Then switch the blend mode to multiply and tweak the colors: Particles Emitted from Given Shape | Babylon.js Playground (babylonjs.com)
We get some nice, goth particles
5 Likes
Nawar
June 13, 2023, 2:50pm
3
Thank you! This completely solves the problem.
1 Like