Every particle effect can hold multiple graphics.
It has lightning, smoke and teleporter stars.
Code: Select all
defineParticleSystem{
name = "lightning_bolt_hit_loop",
emitters = {
-- sparks
{
emissionRate = 60,
emissionTime = 0,
maxParticles = 50,
boxMin = {-1.0, -1.0,-1.0},
boxMax = { 1.0, 1.0, 1.0},
sprayAngle = {0,360},
velocity = {0,0},
objectSpace = false,
texture = "assets/textures/particles/lightning01.tga",
frameRate = 4,
frameSize = 256,
frameCount = 4,
lifetime = {0.2,0.4},
color0 = {2.5,2.5,2.5},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.3,
size = {0.1, 1.5},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
},
-- fog
{
emissionRate = 1,
emissionTime = 0,
spawnBurst = false,
maxParticles = 10,
boxMin = {-1.0, -0.8,-1.5},
boxMax = { 1.0, 0.5, 1.3},
sprayAngle = {90,270},
velocity = {0,0},
objectSpace = false,
texture = "assets/textures/particles/smoke_01.tga",
lifetime = {2,3},
color0 = {0.25, 0.5, 1},
opacity = 0.7,
fadeIn = 1,
fadeOut = 3,
size = {2, 2.2},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 2,
blendMode = "Additive",
},
-- small stars
{
emissionRate = 300,
emissionTime = 0,
maxParticles = 1000,
boxMin = {-1.0,-1.5,-1.0},
boxMax = { 1.0, 1.0, 1.0},
sprayAngle = {0,360},
velocity = {0.5,1.0},
objectSpace = false,
texture = "assets/textures/particles/teleporter.tga",
lifetime = {1,1},
color0 = {1.6,1.8,1.8},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.1,
size = {0.05, 0.1},
gravity = {0,-0.2,0},
airResistance = 0.1,
rotationSpeed = 2,
blendMode = "Additive",
}
}
}