Code: Select all
defineParticleSystem{
name = "RGBscreen",
emitters = {
-- flames
{
-- spawnBurst = true,
emissionRate = 1000,
emissionTime = 20,
maxParticles = 4000,
sprayAngle = {0,360},
velocity = {0,0.3},
boxMin = {-1.1,-0.9,1},
boxMax = {1.1,0.9,1},
objectSpace = true,
texture = "assets/textures/particles/flame.tga",
frameRate = 35,
frameSize = 32,
frameCount = 50,
lifetime = {0.3, 0.5},
color0 = {2, 0, 0},
opacity = 0.5,
fadeIn = 0.001,
fadeOut = 0.15,
size = {0.4005, 0.425},
gravity = {0,0,0},
airResistance = 0.5,
rotationSpeed = 2,
blendMode = "Additive",
},
{
-- spawnBurst = true,
emissionRate = 500,
emissionTime = 20,
maxParticles = 4000,
sprayAngle = {0,180},
velocity = {0,0.3},
boxMin = {-1.1,-0.9,1},
boxMax = {1.1,0.9,1},
objectSpace = true,
texture = "assets/textures/particles/slime.tga",
frameRate = 35,
frameSize = 32,
frameCount = 50,
lifetime = {0.3, 0.5},
color0 = {0, 2, 0},
opacity = 1,
fadeIn = 0.001,
fadeOut = 0.15,
size = {0.4005, 0.425},
gravity = {0,0,0},
airResistance = 0.5,
rotationSpeed = 2,
blendMode = "Additive",
},
{
-- spawnBurst = true,
emissionRate = 1500,
emissionTime = 20,
maxParticles = 4000,
sprayAngle = {45,90},
velocity = {0,0.3},
boxMin = {-1.1,-0.9,1},
boxMax = {1.1,0.9,1},
objectSpace = true,
texture = "assets/textures/particles/glow.tga",
frameRate = 35,
frameSize = 32,
frameCount = 50,
lifetime = {0.3, 0.5},
color0 = {0, 0, 2},
opacity = 1,
fadeIn = 0.001,
fadeOut = 0.15,
size = {0.4005, 0.425},
gravity = {0,0,0},
airResistance = 0.5,
rotationSpeed = 2,
blendMode = "Additive",
},
-- glow
{
-- spawnBurst = true,
emissionRate = 1,
emissionTime = 20,
maxParticles = 10,
boxMin = {0,0,1},
boxMax = {0,0,1},
sprayAngle = {0,30},
velocity = {0,0},
texture = "assets/textures/particles/glow.tga",
lifetime = {0.5, 1},
colorAnimation = false,
color0 = {0, 0, 2},
opacity = 0.8,
fadeIn = 0.001,
fadeOut = 0.1,
size = {4.5, 4.1},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 2,
blendMode = "Additive",
objectSpace = true,
}
}
}