gltf-animation.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "keyframe": {
  3. "directionalLight": {
  4. "0": {
  5. "rotation": [40, 170, 0]
  6. },
  7. "50": {
  8. "rotation": [30, 140, 0]
  9. },
  10. "100": {
  11. "rotation": [40, 170, 0]
  12. }
  13. },
  14. "pointLight": {
  15. "0": {
  16. "position": [10, 0, 0]
  17. },
  18. "100": {
  19. "position": [-10, 0, 0]
  20. }
  21. },
  22. "spotLight": {
  23. "0": {
  24. "rotation": [0,90,0]
  25. },
  26. "100": {
  27. "rotation": [0, 270, 4]
  28. }
  29. }
  30. },
  31. "animation": {
  32. "default": {
  33. "keyframe": "directionalLight",
  34. "duration": 60,
  35. "ease": "linear",
  36. "loop": 400000,
  37. "delay": 1,
  38. "direction": "both"
  39. },
  40. "pointLight": {
  41. "keyframe": "pointLight",
  42. "duration": 6,
  43. "ease": "linear",
  44. "loop": 400000,
  45. "delay": 1,
  46. "direction": "both"
  47. },
  48. "spotLight": {
  49. "keyframe": "spotLight",
  50. "duration": 200,
  51. "ease": "linear",
  52. "loop": 400000,
  53. "delay": 1,
  54. "direction": "both"
  55. }
  56. }
  57. }