gltf.collection 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. name: "gltf"
  2. scale_along_z: 1
  3. embedded_instances {
  4. id: "car"
  5. data: "embedded_components {\n"
  6. " id: \"model\"\n"
  7. " type: \"model\"\n"
  8. " data: \"mesh: \\\"/assets/models/vehicle-racer.glb\\\"\\n"
  9. "name: \\\"{{NAME}}\\\"\\n"
  10. "materials {\\n"
  11. " name: \\\"colormap\\\"\\n"
  12. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  13. " textures {\\n"
  14. " sampler: \\\"texture0\\\"\\n"
  15. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  16. " }\\n"
  17. "}\\n"
  18. "\"\n"
  19. "}\n"
  20. ""
  21. }
  22. embedded_instances {
  23. id: "camera"
  24. data: "embedded_components {\n"
  25. " id: \"camera\"\n"
  26. " type: \"camera\"\n"
  27. " data: \"aspect_ratio: 1.0\\n"
  28. "fov: 0.7854\\n"
  29. "near_z: 0.1\\n"
  30. "far_z: 1000.0\\n"
  31. "auto_aspect_ratio: 1\\n"
  32. "\"\n"
  33. "}\n"
  34. ""
  35. position {
  36. x: 1.6733184
  37. y: 0.87541014
  38. z: -2.2133834
  39. }
  40. rotation {
  41. x: -0.021368599
  42. y: 0.9459346
  43. z: 0.063699536
  44. w: 0.31732246
  45. }
  46. }
  47. embedded_instances {
  48. id: "track"
  49. data: "embedded_components {\n"
  50. " id: \"road0\"\n"
  51. " type: \"model\"\n"
  52. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  53. "name: \\\"{{NAME}}\\\"\\n"
  54. "materials {\\n"
  55. " name: \\\"colormap\\\"\\n"
  56. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  57. " textures {\\n"
  58. " sampler: \\\"texture0\\\"\\n"
  59. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  60. " }\\n"
  61. "}\\n"
  62. "\"\n"
  63. " position {\n"
  64. " y: -0.1\n"
  65. " z: 4.0\n"
  66. " }\n"
  67. "}\n"
  68. "embedded_components {\n"
  69. " id: \"road1\"\n"
  70. " type: \"model\"\n"
  71. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  72. "name: \\\"{{NAME}}\\\"\\n"
  73. "materials {\\n"
  74. " name: \\\"colormap\\\"\\n"
  75. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  76. " textures {\\n"
  77. " sampler: \\\"texture0\\\"\\n"
  78. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  79. " }\\n"
  80. "}\\n"
  81. "\"\n"
  82. " position {\n"
  83. " y: -0.1\n"
  84. " }\n"
  85. "}\n"
  86. "embedded_components {\n"
  87. " id: \"road2\"\n"
  88. " type: \"model\"\n"
  89. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  90. "name: \\\"{{NAME}}\\\"\\n"
  91. "materials {\\n"
  92. " name: \\\"colormap\\\"\\n"
  93. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  94. " textures {\\n"
  95. " sampler: \\\"texture0\\\"\\n"
  96. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  97. " }\\n"
  98. "}\\n"
  99. "\"\n"
  100. " position {\n"
  101. " y: -0.1\n"
  102. " z: -4.0\n"
  103. " }\n"
  104. "}\n"
  105. "embedded_components {\n"
  106. " id: \"road3\"\n"
  107. " type: \"model\"\n"
  108. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  109. "name: \\\"{{NAME}}\\\"\\n"
  110. "materials {\\n"
  111. " name: \\\"colormap\\\"\\n"
  112. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  113. " textures {\\n"
  114. " sampler: \\\"texture0\\\"\\n"
  115. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  116. " }\\n"
  117. "}\\n"
  118. "\"\n"
  119. " position {\n"
  120. " y: -0.1\n"
  121. " z: -8.0\n"
  122. " }\n"
  123. "}\n"
  124. "embedded_components {\n"
  125. " id: \"road4\"\n"
  126. " type: \"model\"\n"
  127. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  128. "name: \\\"{{NAME}}\\\"\\n"
  129. "materials {\\n"
  130. " name: \\\"colormap\\\"\\n"
  131. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  132. " textures {\\n"
  133. " sampler: \\\"texture0\\\"\\n"
  134. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  135. " }\\n"
  136. "}\\n"
  137. "\"\n"
  138. " position {\n"
  139. " y: -0.1\n"
  140. " z: -12.0\n"
  141. " }\n"
  142. "}\n"
  143. "embedded_components {\n"
  144. " id: \"road5\"\n"
  145. " type: \"model\"\n"
  146. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  147. "name: \\\"{{NAME}}\\\"\\n"
  148. "materials {\\n"
  149. " name: \\\"colormap\\\"\\n"
  150. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  151. " textures {\\n"
  152. " sampler: \\\"texture0\\\"\\n"
  153. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  154. " }\\n"
  155. "}\\n"
  156. "\"\n"
  157. " position {\n"
  158. " y: -0.1\n"
  159. " z: -16.0\n"
  160. " }\n"
  161. "}\n"
  162. "embedded_components {\n"
  163. " id: \"road6\"\n"
  164. " type: \"model\"\n"
  165. " data: \"mesh: \\\"/assets/models/track-road-wide-straight.glb\\\"\\n"
  166. "name: \\\"{{NAME}}\\\"\\n"
  167. "materials {\\n"
  168. " name: \\\"colormap\\\"\\n"
  169. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  170. " textures {\\n"
  171. " sampler: \\\"texture0\\\"\\n"
  172. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  173. " }\\n"
  174. "}\\n"
  175. "\"\n"
  176. " position {\n"
  177. " y: -0.1\n"
  178. " z: -20.0\n"
  179. " }\n"
  180. "}\n"
  181. "embedded_components {\n"
  182. " id: \"gate\"\n"
  183. " type: \"model\"\n"
  184. " data: \"mesh: \\\"/assets/models/gate.glb\\\"\\n"
  185. "name: \\\"{{NAME}}\\\"\\n"
  186. "materials {\\n"
  187. " name: \\\"colormap\\\"\\n"
  188. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  189. " textures {\\n"
  190. " sampler: \\\"texture0\\\"\\n"
  191. " texture: \\\"/assets/models/Textures/colormap.png\\\"\\n"
  192. " }\\n"
  193. "}\\n"
  194. "\"\n"
  195. " position {\n"
  196. " y: -0.1\n"
  197. " z: -7.0\n"
  198. " }\n"
  199. "}\n"
  200. ""
  201. }
  202. embedded_instances {
  203. id: "main"
  204. data: "components {\n"
  205. " id: \"gltf\"\n"
  206. " component: \"/example/gltf.script\"\n"
  207. "}\n"
  208. ""
  209. }