mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-15 07:40:44 +02:00
42 lines
937 B
Plaintext
42 lines
937 B
Plaintext
//
|
|
// small smokepuff
|
|
//
|
|
|
|
numParticles 2
|
|
material textures/particles/blacksmokepuff
|
|
initialVelocity ( point, 0, 0.0, 0.0 )
|
|
// the size is between 0.5 and 1.25
|
|
size ( 1.5, 2.5 )
|
|
// random color alpha, domain rgb
|
|
randomColor ( 1, line, 1, 1, 1, 1, 1, 1 )
|
|
angle ( 0, 359 )
|
|
rotationSpeed ( -2, 2 )
|
|
livefor 3
|
|
staydead
|
|
moveWithParent
|
|
|
|
begin {
|
|
// when a particle dies, it will re-start with the same base velocity
|
|
copyVelocitys
|
|
moveWithParent
|
|
|
|
// target color rgba, scale to get there
|
|
targetColor ( 0.0, 0.0, 0.0, 0.0, 0.019 )
|
|
|
|
targetSize ( 12, 0.075 )
|
|
// allow up to 1 particles per iteration to appear in the defined plane
|
|
source ( 2, line, 0,0,0, 0,0,0 )
|
|
randomacceleration ( point, 0.0, 0, 0.01)
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, 0.01 )
|
|
killunseen
|
|
|
|
// slow them down
|
|
applyDamping (0.9, 0.9, 0.9)
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|