Advertisement
snake5

new particle system data format

Apr 27th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global PSFX_Shot =
  2. {
  3.     emitters =
  4.     [
  5.         {
  6.             texture = "images/smoke.png",
  7.             tempslots = 1,
  8.             spawncount = 8,
  9.             spawncount_rand = 3,
  10.             spawn_code =
  11.             [
  12.                 "RANDEXT; position; PS.emitpos; 1.2",
  13.                 "RANDBOX; angle; 0; 360",
  14.                 "RANDEXT; size; 15; 4",
  15.                 "RANDEXT; color; vec4(0.6,0.6,0.6,0.4); vec4(0.02,0.02,0.02,0.04)",
  16.                 "RANDEXT; velocity; 0; 1",
  17.                 "RANDEXT; tmp0; 20; 8",
  18.                 "MULA; tmp0; PS.emitdir",
  19.                 "ADDA; velocity; tmp0",
  20.                 "SET; timeleft; randf()*0.2+1",
  21.             ],
  22.             tick_code =
  23.             [
  24.                 "MAD; position; velocity; delta",
  25.                 "SUBA; timeleft; delta",
  26.                 "ADDA; size; delta*2",
  27.                 "SUBA; color; vec4(0,0,0,0.7)*delta",
  28.                 "LERPTO; velocity; vec2(0); delta*0.8",
  29.             ],
  30.         },
  31.         {
  32.             texture = "images/fire.png",
  33.             tempslots = 0,
  34.             spawncount = 8,
  35.             spawncount_rand = 3,
  36.             rendermode = "additive",
  37.             spawn_code =
  38.             [
  39.                 "RANDEXT; position; PS.emitpos; 1.2",
  40.                 "RANDBOX; angle; 0; 360",
  41.                 "SET; size; 5",
  42.                 "RANDEXT; color; vec4(0.8,0.8,0.8,0.8); vec4(0.02,0.02,0.02,0.04)",
  43.                 "RANDEXT; velocity; 0; 1",
  44.                 "ADDA; velocity; PS.emitdir * (1.3 + randf()*0.7)",
  45.                 "SET; timeleft; randf()*0.1+0.3",
  46.             ],
  47.             tick_code =
  48.             [
  49.                 "MAD; position; velocity; delta",
  50.                 "SUBA; timeleft; delta",
  51.                 "ADDA; size; delta*2",
  52.                 "SUBA; color; vec4(0,0,0,3.7)*delta",
  53.                 "LERPTO; velocity; vec2(0); delta*0.8",
  54.             ],
  55.         },
  56.     ]
  57. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement