world_to_screen.collection 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. name: "world_to_screen"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "camera"
  5. data: "embedded_components {\n"
  6. " id: \"camera\"\n"
  7. " type: \"camera\"\n"
  8. " data: \"aspect_ratio: 1.0\\n"
  9. "fov: 0.7854\\n"
  10. "near_z: 0.01\\n"
  11. "far_z: 100.0\\n"
  12. "orthographic_mode: ORTHO_MODE_AUTO_FIT\\n"
  13. "\"\n"
  14. "}\n"
  15. ""
  16. position {
  17. y: 5.0
  18. z: 5.0
  19. }
  20. rotation {
  21. x: -0.37036422
  22. w: 0.9288866
  23. }
  24. }
  25. embedded_instances {
  26. id: "player"
  27. children: "player_shadow"
  28. children: "player_ui"
  29. children: "player_view"
  30. data: "components {\n"
  31. " id: \"player\"\n"
  32. " component: \"/example/player.script\"\n"
  33. "}\n"
  34. ""
  35. position {
  36. y: 0.3
  37. z: -2.0
  38. }
  39. }
  40. embedded_instances {
  41. id: "ui"
  42. data: "components {\n"
  43. " id: \"hud\"\n"
  44. " component: \"/example/hud.gui\"\n"
  45. "}\n"
  46. ""
  47. position {
  48. z: -361.0
  49. }
  50. }
  51. embedded_instances {
  52. id: "environment"
  53. data: "embedded_components {\n"
  54. " id: \"crypt\"\n"
  55. " type: \"model\"\n"
  56. " data: \"mesh: \\\"/assets/models/crypt.glb\\\"\\n"
  57. "name: \\\"{{NAME}}\\\"\\n"
  58. "materials {\\n"
  59. " name: \\\"colormap\\\"\\n"
  60. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  61. " textures {\\n"
  62. " sampler: \\\"texture0\\\"\\n"
  63. " texture: \\\"/assets/models/colormap.png\\\"\\n"
  64. " }\\n"
  65. "}\\n"
  66. "\"\n"
  67. "}\n"
  68. "embedded_components {\n"
  69. " id: \"crypt_shadow\"\n"
  70. " type: \"sprite\"\n"
  71. " data: \"default_animation: \\\"anim\\\"\\n"
  72. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  73. "size {\\n"
  74. " x: 2.5\\n"
  75. " y: 3.5\\n"
  76. "}\\n"
  77. "size_mode: SIZE_MODE_MANUAL\\n"
  78. "textures {\\n"
  79. " sampler: \\\"texture_sampler\\\"\\n"
  80. " texture: \\\"/builtins/graphics/particle_blob.tilesource\\\"\\n"
  81. "}\\n"
  82. "\"\n"
  83. " rotation {\n"
  84. " x: 0.70710677\n"
  85. " w: 0.70710677\n"
  86. " }\n"
  87. "}\n"
  88. ""
  89. rotation {
  90. y: 0.70710677
  91. w: 0.70710677
  92. }
  93. }
  94. embedded_instances {
  95. id: "player_view"
  96. data: "embedded_components {\n"
  97. " id: \"model\"\n"
  98. " type: \"model\"\n"
  99. " data: \"mesh: \\\"/assets/models/character-ghost.glb\\\"\\n"
  100. "name: \\\"{{NAME}}\\\"\\n"
  101. "materials {\\n"
  102. " name: \\\"colormap\\\"\\n"
  103. " material: \\\"/assets/materials/unlit.material\\\"\\n"
  104. " textures {\\n"
  105. " sampler: \\\"texture0\\\"\\n"
  106. " texture: \\\"/assets/models/colormap.png\\\"\\n"
  107. " }\\n"
  108. "}\\n"
  109. "\"\n"
  110. "}\n"
  111. ""
  112. }
  113. embedded_instances {
  114. id: "player_shadow"
  115. data: "embedded_components {\n"
  116. " id: \"sprite\"\n"
  117. " type: \"sprite\"\n"
  118. " data: \"default_animation: \\\"anim\\\"\\n"
  119. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  120. "size {\\n"
  121. " x: 1.2\\n"
  122. " y: 1.2\\n"
  123. "}\\n"
  124. "size_mode: SIZE_MODE_MANUAL\\n"
  125. "textures {\\n"
  126. " sampler: \\\"texture_sampler\\\"\\n"
  127. " texture: \\\"/builtins/graphics/particle_blob.tilesource\\\"\\n"
  128. "}\\n"
  129. "\"\n"
  130. " rotation {\n"
  131. " x: 0.70710677\n"
  132. " w: 0.70710677\n"
  133. " }\n"
  134. "}\n"
  135. ""
  136. position {
  137. y: -0.3
  138. }
  139. }
  140. embedded_instances {
  141. id: "player_ui"
  142. data: ""
  143. position {
  144. y: 1.0
  145. }
  146. }