Code: Select all
defineParticleSystem{
name = "shadowraze",
emitters = {
-- fog
{
spawnBurst = true,
maxParticles = 50,
sprayAngle = {0,360},
velocity = {1,2},
objectSpace = true,
texture = "assets/textures/particles/fog.tga",
lifetime = {1,1.2},
color0 = {0.01, 0.01, 0.01},
opacity = 1,
fadeIn = 0.05,
fadeOut = 0.3,
size = {1, 2},
gravity = {0,0,0},
airResistance = 0.5,
rotationSpeed = 1,
blendMode = "Translucent",
},
-- flames
{
spawnBurst = true,
maxParticles = 50,
sprayAngle = {0,360},
velocity = {1,1.25},
objectSpace = true,
texture = "assets/textures/particles/torch_flame.tga",
frameRate = 35,
frameSize = 64,
frameCount = 16,
lifetime = {0.4,0.6},
color0 = {5, 0, 0},
opacity = 0.75,
fadeIn = 0.1,
fadeOut = 0.3,
size = {0.4, 0.6},
gravity = {0,0,0},
airResistance = 0.5,
rotationSpeed = 2,
blendMode = "Additive",
depthBias = 0.02,
},
-- stars
{
spawnBurst = true,
maxParticles = 100,
sprayAngle = {0,360},
velocity = {3,5},
objectSpace = false,
texture = "assets/textures/particles/teleporter.tga",
lifetime = {0.7,1},
color0 = {10,0.1,0.1},
opacity = 0.05,
fadeIn = 0.01,
fadeOut = 0.1,
size = {0.1, 1},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 5,
randomInitialRotation = true,
blendMode = "Translucent",
depthBias = 0.025,
},
}
}