aframe-particle-system-component
aframe-particle-system-component copied to clipboard
Particle system - particles texture is not visible
Hi, I have included a particle system in my ar app, when trying to add texture it does not appear. Running on and aframe 1.3.0
particle-system="preset: dust; size: 3; texture: ./images/leaf.png; opacity:2; particleCount: 2000; color: #EF0000,#44CC00"
Any idea what's the issue? ty
To fix it, you need to do this:
texture: require('./assets/mytexture.png'),
For example in the fireworks, example project, you can find :
rocketParticles.setAttribute('particle-system', { color: '#F4D03F,#7D6608', positionSpread: '0 0.5 0', rotationAxis: 'x', direction: '-1', particleCount: '250', maxParticleCount: '500', maxAge: '0.45', accelerationValue: '0, -0.01, 0', accelerationSpread: '0 0 0', velocityValue: '0 0 0', blending: 1, }) you just need to add: texture: require('./assets/mytexture.png').