mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
38 lines
800 B
Plaintext
38 lines
800 B
Plaintext
//
|
|
// longer firetrail
|
|
//
|
|
|
|
numParticles 30
|
|
material textures/sfx/firetrail
|
|
//initialVelocity ( cone, 0.0, 0.0, 0.0, 0, 0, 0, 3.2, 3 )
|
|
initialVelocity ( point, 0.0, 0.0, 0.0 )
|
|
size ( 16, 18 )
|
|
randomColor ( 0.1, line, 0.3, 0.3, 0.3, 0.7, 0.7, 0.7 )
|
|
angle ( 0, 359 )
|
|
rotationSpeed ( -1, 1 )
|
|
trailSize 1
|
|
liveForever
|
|
moveWithParent
|
|
|
|
begin {
|
|
// when a particle dies, it will re-start with the same base velocity
|
|
copyVelocitys
|
|
|
|
// target color rgba, scale to get there
|
|
targetColor ( 0.6, 0.4, 0.1, 0.0, 0.25 )
|
|
|
|
source ( 6, cone, 0, 0, 0, 0, 0, 0, 0, 0)
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, 0.020 )
|
|
killIfOlderThan 4
|
|
killUnseen
|
|
|
|
// slow them down
|
|
applyDamping (0.9, 0.9, 0.9)
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|