mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 00:01:53 +02:00
40 lines
909 B
Plaintext
40 lines
909 B
Plaintext
//
|
|
// smokepuff
|
|
//
|
|
|
|
numParticles 8
|
|
material textures/particles/bloodpuff
|
|
initialVelocity ( cylinder, 0.0, -0.01, 0.55, 0.0, -0.01, 4.5, 1, 1 )
|
|
// the size is between 0.5 and 1.25
|
|
size ( 2.0, 5.0 )
|
|
// random color alpha, domain rgb
|
|
//randomColor ( 1.0, line, 0.8, 0, 0, 0.1, 0.0, 0.0 )
|
|
livefor 6
|
|
angle ( 0, 359 )
|
|
rotationSpeed ( -2, 2 )
|
|
staydead
|
|
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.125 )
|
|
|
|
targetSize ( 10, 0.3 )
|
|
// allow up to 1 particles per iteration to appear in the defined plane
|
|
source ( 3, line, 0,0,0, 0, 4, 0 )
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, -0.1 )
|
|
|
|
// slow them down
|
|
applyDamping (0.9, 0.9, 0.8)
|
|
killUnseen
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|