Hello, I’m testing the particle system, and I can’t use any texture on the particles.
I’ve made a simple white dot, with transparency, saved as dot.png, but it does not work.
https://playground.babylonjs.com/#MRRGXL#274
Please note that my test is in local, so I’ve uploaded the “dot.png” just for Playground purpose.
What I’m missing?
Many thanks!!
You need to set a blend mode:
https://playground.babylonjs.com/#MRRGXL#275
You also have:
/**
* Blend current color and particle color using particle’s alpha
*/
public static BLENDMODE_STANDARD = 1;
/**
* Add current color and particle color multiplied by particle’s alpha
*/
public static BLENDMODE_ADD = 2;
/**
* Multiply current color with particle color
*/
public static BLENDMODE_MULTIPLY = 3;
/**
* Multiply current color with particle color then add current color and particle color multiplied by particle’s alpha
*/
public static BLENDMODE_MULTIPLYADD = 4;
2 Likes