Advertisement
snake5

SG3D Particle System - sample file

Dec 22nd, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. MATERIAL "ps0.mtl"
  2. MAX 100
  3. SPAWN 2;1
  4. RESTART 0.4;0.1
  5. CREATE
  6. SET color 1;1;1;0
  7. SETRAND pos 0 0.1
  8. SET size 1
  9. SET angle 0
  10. SETRAND time 5 0.5
  11. SET vel 0;0;0.5
  12. SETRAND tmp2 1 0.5
  13. END
  14. TICK
  15. MUL tmp0 vel DT
  16. MUL tmp1 0.2 DT
  17. MUL tmp3 tmp2 DT
  18. ADD pos pos tmp0
  19. ADD size size tmp1
  20. SUB color color tmp1
  21. CLAMP color color 0 1
  22. SUB time time DT
  23. ADD angle angle tmp3
  24. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement