mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
38 lines
867 B
Plaintext
38 lines
867 B
Plaintext
//
|
|
// smoke trail stuff
|
|
//
|
|
|
|
numParticles 400
|
|
material textures/particles/smokepuff
|
|
initialVelocity ( point, 0, 0.0, 0.0 )
|
|
// the size is between 0.5 and 1.25
|
|
size ( 0.5, 1.0 )
|
|
// random color alpha, domain rgb
|
|
randomColor ( 0.7, line, 0.7, 0.7, 0.7, 1.0, 0.85, 0.85 )
|
|
liveforever
|
|
angle ( 0, 359 )
|
|
rotationSpeed ( -2, 2 )
|
|
//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.0, 0.0, 0.0, 0.0, 0.2 )
|
|
|
|
targetSize ( 8, 0.075 )
|
|
// allow up to 1 particles per iteration to appear in the defined plane
|
|
source ( 1, line, 0,0,0, 0,0,0 )
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, 0.01 )
|
|
|
|
// slow them down
|
|
applyDamping (0.9, 0.9, 0.9)
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|