example.collection 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. name: "example"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "floor"
  5. data: "embedded_components {\n"
  6. " id: \"model\"\n"
  7. " type: \"model\"\n"
  8. " data: \"mesh: \\\"/assets/models/floor_tile_large.gltf.glb\\\"\\n"
  9. "name: \\\"{{NAME}}\\\"\\n"
  10. "materials {\\n"
  11. " name: \\\"texture\\\"\\n"
  12. " material: \\\"/builtins/materials/model.material\\\"\\n"
  13. " textures {\\n"
  14. " sampler: \\\"tex0\\\"\\n"
  15. " texture: \\\"/assets/models/dungeon_texture.png\\\"\\n"
  16. " }\\n"
  17. "}\\n"
  18. "\"\n"
  19. "}\n"
  20. ""
  21. }
  22. embedded_instances {
  23. id: "wall"
  24. data: "embedded_components {\n"
  25. " id: \"model\"\n"
  26. " type: \"model\"\n"
  27. " data: \"mesh: \\\"/assets/models/wall.gltf.glb\\\"\\n"
  28. "name: \\\"{{NAME}}\\\"\\n"
  29. "materials {\\n"
  30. " name: \\\"texture\\\"\\n"
  31. " material: \\\"/builtins/materials/model.material\\\"\\n"
  32. " textures {\\n"
  33. " sampler: \\\"tex0\\\"\\n"
  34. " texture: \\\"/assets/models/dungeon_texture.png\\\"\\n"
  35. " }\\n"
  36. "}\\n"
  37. "\"\n"
  38. "}\n"
  39. ""
  40. position {
  41. z: -2.0
  42. }
  43. }
  44. embedded_instances {
  45. id: "player"
  46. children: "camera"
  47. data: "components {\n"
  48. " id: \"player\"\n"
  49. " component: \"/example/player.script\"\n"
  50. "}\n"
  51. "embedded_components {\n"
  52. " id: \"model\"\n"
  53. " type: \"model\"\n"
  54. " data: \"mesh: \\\"/assets/models/Knight.glb\\\"\\n"
  55. "skeleton: \\\"/assets/models/Knight.glb\\\"\\n"
  56. "animations: \\\"/assets/models/Knight.glb\\\"\\n"
  57. "default_animation: \\\"Block_Attack\\\"\\n"
  58. "name: \\\"{{NAME}}\\\"\\n"
  59. "materials {\\n"
  60. " name: \\\"knight_texture\\\"\\n"
  61. " material: \\\"/assets/materials/model_world.material\\\"\\n"
  62. " textures {\\n"
  63. " sampler: \\\"tex0\\\"\\n"
  64. " texture: \\\"/assets/models/knight_texture.png\\\"\\n"
  65. " }\\n"
  66. "}\\n"
  67. "materials {\\n"
  68. " name: \\\"knight_texture_no_skin\\\"\\n"
  69. " material: \\\"/assets/materials/model_world.material\\\"\\n"
  70. " textures {\\n"
  71. " sampler: \\\"tex0\\\"\\n"
  72. " texture: \\\"/assets/models/knight_texture.png\\\"\\n"
  73. " }\\n"
  74. "}\\n"
  75. "\"\n"
  76. "}\n"
  77. ""
  78. }
  79. embedded_instances {
  80. id: "camera"
  81. data: "components {\n"
  82. " id: \"orbit_camera\"\n"
  83. " component: \"/example/orbit_camera.script\"\n"
  84. " properties {\n"
  85. " id: \"zoom\"\n"
  86. " value: \"13.0\"\n"
  87. " type: PROPERTY_TYPE_NUMBER\n"
  88. " }\n"
  89. "}\n"
  90. "embedded_components {\n"
  91. " id: \"camera\"\n"
  92. " type: \"camera\"\n"
  93. " data: \"aspect_ratio: 1.0\\n"
  94. "fov: 0.7854\\n"
  95. "near_z: 0.1\\n"
  96. "far_z: 1000.0\\n"
  97. "auto_aspect_ratio: 1\\n"
  98. "\"\n"
  99. "}\n"
  100. ""
  101. position {
  102. y: 5.0
  103. z: 8.0
  104. }
  105. rotation {
  106. x: -0.21643962
  107. w: 0.976296
  108. }
  109. }
  110. embedded_instances {
  111. id: "postprocess"
  112. data: "components {\n"
  113. " id: \"postprocess\"\n"
  114. " component: \"/example/postprocess.script\"\n"
  115. "}\n"
  116. "embedded_components {\n"
  117. " id: \"quad\"\n"
  118. " type: \"model\"\n"
  119. " data: \"mesh: \\\"/builtins/assets/meshes/quad_2x2.dae\\\"\\n"
  120. "name: \\\"{{NAME}}\\\"\\n"
  121. "materials {\\n"
  122. " name: \\\"default\\\"\\n"
  123. " material: \\\"/example/materials/passthrough.material\\\"\\n"
  124. "}\\n"
  125. "create_go_bones: false\\n"
  126. "\"\n"
  127. "}\n"
  128. ""
  129. }
  130. embedded_instances {
  131. id: "instructions"
  132. data: "components {\n"
  133. " id: \"instructions\"\n"
  134. " component: \"/example/instructions.gui\"\n"
  135. "}\n"
  136. ""
  137. }