bump_lig.bin 937 B

12345678910111213141516171819202122
  1. How to use the custom light position evaluator:
  2. * Init code will be executed each time the window size is changed
  3. or when the effect loads
  4. * Frame code is executed before rendering a new frame
  5. * Beat code is executed when a beat is detected
  6. Predefined variables:
  7. x : Light x position, ranges from 0 (left) to 1 (right) (0.5 = center)
  8. y : Light y position, ranges from 0 (top) to 1 (bottom) (0.5 = center)
  9. isBeat : 1 if no beat, -1 if beat (weird, but old)
  10. isLBeat: same as isBeat but persists according to 'shorter/longer' settings
  11. (usable only with OnBeat checked)
  12. bi: Bump intensity, ranges from 0 (flat) to 1 (max specified bump, default)
  13. You may also use temporary variables accross code segments
  14. Some examples:
  15. Circular move
  16. Init : t=0
  17. Frame: x=0.5+cos(t)*0.3; y=0.5+sin(t)*0.3; t=t+0.1;
  18. Nice motion:
  19. Init : t=0;u=0
  20. Frame: x=0.5+cos(t)*0.3; y=0.5+cos(u)*0.3; t=t+0.1; u=u+0.012;