Code: Select all
defineParticleSystem{
name = "shock_fire",
emitters = {
-- glow
{
spawnBurst = true,
emissionRate = 1,
emissionTime = 0,
maxParticles = 1,
boxMin = {0, 1, 0},
boxMax = {0, 1, 0},
sprayAngle = {0,30},
velocity = {0,0},
texture = "assets/textures/particles/glow_ring.tga",
lifetime = {1000, 1000},
colorAnimation = false,
color0 = {0.090000, 0.495000, 1.500000},
opacity = 0.1,
fadeIn = 0.01,
fadeOut = 0.5,
size = {7, 7},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
},
-- sparkles
{
emissionRate = 200,
emissionTime = 0,
maxParticles = 300,
boxMin = {-1.3, -0.3,-1.3 },
boxMax = { 1.3, 1.5, 1.3 },
sprayAngle = {0,180},
velocity = {0.1,0.5},
objectSpace = false,
texture = "assets/textures/particles/force_field_particle.tga",
lifetime = {0.4,1},
color0 = {0.8*1.5,1.2*1.5,1.9*1.5},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.1,
size = {0.03, 0.1},
gravity = {0,2.3,0},
airResistance = 0.01,
rotationSpeed = 10,
blendMode = "Additive",
},
-- glow sparkles
{
emissionRate = 30,
emissionTime = 0,
maxParticles = 100,
boxMin = {-1.3, 0.0,-1.3 },
boxMax = { 1.3, 0.5, 1.3 },
sprayAngle = {0,180},
velocity = {0.1,0.5},
texture = "assets/textures/particles/glow.tga",
lifetime = {0.2, 0.6},
colorAnimation = false,
color0 = {0.090000, 0.495000, 1.500000},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.5,
size = {0.3, 1.8},
gravity = {0,1.5,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
},
}
}
defineParticleSystem{
name = "shock_fire_impact",
emitters = {
-- sparkles
{
spawnBurst = true,
maxParticles = 1000,
boxMin = {-1.3, 0.0, -1.3 },
boxMax = { 1.3, 0.1, 1.3 },
sprayAngle = {0,180},
velocity = {2,5},
objectSpace = false,
texture = "assets/textures/particles/force_field_particle.tga",
lifetime = {0.3,0.6},
color0 = {0.8*1.5,1.2*1.5,1.8*1.5},
opacity = 1,
fadeIn = 0.01,
fadeOut = 0.3,
size = {0.05, 0.3},
gravity = {0,0,0},
airResistance = 0.01,
rotationSpeed = 3,
blendMode = "Additive",
},
-- glow sparkles
{
spawnBurst = true,
maxParticles = 20,
boxMin = {-1.3, 0.0,-1.3 },
boxMax = { 1.3, 0.1, 1.3 },
sprayAngle = {0,180},
velocity = {0.1,0.5},
texture = "assets/textures/particles/glow.tga",
lifetime = {0.2, 0.6},
colorAnimation = false,
color0 = {0.090000, 0.495000, 1.500000},
opacity = 1,
fadeIn = 0.01,
fadeOut = 0.5,
size = {0.3, 1.8},
gravity = {0,1.5,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
},
}
}