UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

10 lines (8 loc) 262 B
var particleUpdaterRespawnPS = /* glsl */ ` if (outLife >= lifetime) { outLife -= max(lifetime, numParticles * particleRate); visMode = 1.0; } visMode = outLife < 0.0? 1.0: visMode; `; export { particleUpdaterRespawnPS as default };