mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
29 lines
638 B
Plaintext
29 lines
638 B
Plaintext
//
|
|
// bubble particle
|
|
//
|
|
|
|
numParticles 256
|
|
material textures/sfx/bubble
|
|
// sphere x,y,z radius1, radius2
|
|
initialVelocity ( line, 2.5, 0, 0, 0, 0, 0 )
|
|
// the size is between 0.5 and 1.25
|
|
size ( .25, 1 )
|
|
randomColor ( 0.5, line, 1.0, 1.0, 2.0, 0.5, 0.5, 0.5 )
|
|
angle ( 0, 359 )
|
|
rotationSpeed ( -3, 3 )
|
|
liveforever
|
|
|
|
begin {
|
|
// when a particle dies, it will re-start with the same base velocity
|
|
copyVelocitys
|
|
|
|
// allow up to 150 particles per iteration to appear in the defined plane
|
|
source ( .75, cylinder, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 7, 0 )
|
|
|
|
killIfOlderThan 40
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|