mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 02:58:46 +02:00
38 lines
864 B
Plaintext
38 lines
864 B
Plaintext
//
|
|
// small smokepuff
|
|
//
|
|
|
|
numParticles 2
|
|
material textures/particles/smokepuff
|
|
initialVelocity ( point, 0.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.4, 0.4, 0.4, 0.4, 0.4 )
|
|
livefor 1
|
|
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.05 )
|
|
|
|
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.05, 0.0, 0.01 )
|
|
|
|
// slow them down
|
|
applyDamping (0.9, 0.9, 0.9)
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|