test-scene.mojo3d 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "assetsDir":"modules/mojo3d/tests/assets/",
  3. "instances":[{
  4. "ctor":{
  5. "args":[true],
  6. "decl":"mojo3d.Scene.New",
  7. "type":"Void(Bool)"
  8. },
  9. "id":0,
  10. "state":{
  11. "AmbientLight":[0.05000000074505806,0.15000000596046448,0.25,0.25],
  12. "ClearColor":[0.20000000298023224,0.60000002384185791,1,1],
  13. "FogColor":[0.20000000298023224,0.60000002384185791,1,1],
  14. "FogFar":200
  15. },
  16. "type":"mojo3d.Scene"
  17. },{
  18. "ctor":{
  19. "args":[null],
  20. "decl":"mojo3d.Camera.New",
  21. "type":"Void(mojo3d.Entity)"
  22. },
  23. "id":1,
  24. "state":{
  25. "LocalMatrix":[1,0,0,0,1,0,0,0,1,0,2.5,-5],
  26. "Visible":true
  27. },
  28. "type":"mojo3d.Camera"
  29. },{
  30. "ctor":{
  31. "args":["@1"],
  32. "decl":"mojo3d.FlyBehaviour.New",
  33. "type":"Void(mojo3d.Entity)"
  34. },
  35. "id":2,
  36. "type":"mojo3d.FlyBehaviour"
  37. },{
  38. "ctor":{
  39. "args":[null],
  40. "decl":"mojo3d.Light.New",
  41. "type":"Void(mojo3d.Entity)"
  42. },
  43. "id":3,
  44. "state":{
  45. "CastsShadow":true,
  46. "LocalMatrix":[0.70710676908493042,0,0.70710676908493042,-0.49999997019767761,0.70710676908493042,0.49999997019767761,-0.49999997019767761,-0.70710676908493042,0.49999997019767761,0,0,0],
  47. "Visible":true
  48. },
  49. "type":"mojo3d.Light"
  50. },{
  51. "ctor":{
  52. "args":[[0.69999998807907104,1,0,1],1,1,false],
  53. "decl":"mojo3d.PbrMaterial.New",
  54. "type":"Void(std.graphics.Color,Float,Float,Bool)"
  55. },
  56. "id":4,
  57. "type":"mojo3d.PbrMaterial"
  58. },{
  59. "ctor":{
  60. "args":[[-100,-1,-100,100,0,100],1,1,1],
  61. "decl":"mojo3d.Mesh.CreateBox",
  62. "type":"mojo3d.Mesh(std.geom.Box<monkey.types.Float>,Int,Int,Int)"
  63. },
  64. "id":5,
  65. "type":"mojo3d.Mesh"
  66. },{
  67. "ctor":{
  68. "args":["@5","@4",null],
  69. "decl":"mojo3d.Model.New",
  70. "type":"Void(mojo3d.Mesh,mojo3d.Material,mojo3d.Entity)"
  71. },
  72. "id":6,
  73. "state":{
  74. "Materials":["@4"],
  75. "Mesh":"@5",
  76. "Visible":true
  77. },
  78. "type":"mojo3d.Model"
  79. },{
  80. "ctor":{
  81. "args":[[1,0,0,1],0.05000000074505806,0.20000000298023224,false],
  82. "decl":"mojo3d.PbrMaterial.New",
  83. "type":"Void(std.graphics.Color,Float,Float,Bool)"
  84. },
  85. "id":7,
  86. "type":"mojo3d.PbrMaterial"
  87. },{
  88. "ctor":{
  89. "args":[2,0.5,48,24],
  90. "decl":"mojo3d.Mesh.CreateTorus",
  91. "type":"mojo3d.Mesh(Float,Float,Int,Int)"
  92. },
  93. "id":8,
  94. "type":"mojo3d.Mesh"
  95. },{
  96. "ctor":{
  97. "args":["@8","@7",null],
  98. "decl":"mojo3d.Model.New",
  99. "type":"Void(mojo3d.Mesh,mojo3d.Material,mojo3d.Entity)"
  100. },
  101. "id":9,
  102. "state":{
  103. "LocalMatrix":[1,0,0,0,1,0,0,0,1,0,2.5,0],
  104. "Materials":["@7"],
  105. "Mesh":"@8",
  106. "Visible":true
  107. },
  108. "type":"mojo3d.Model"
  109. },{
  110. "ctor":{
  111. "args":["@9"],
  112. "decl":"mojo3d.RotateBehaviour.New",
  113. "type":"Void(mojo3d.Entity)"
  114. },
  115. "id":10,
  116. "state":{
  117. "Speed":[0.10000000149011612,0.20000000298023224,0.30000001192092896]
  118. },
  119. "type":"mojo3d.RotateBehaviour"
  120. }]
  121. }