material_tester.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. [gd_scene load_steps=21 format=3 uid="uid://c57duuo5p7mc0"]
  2. [ext_resource type="Script" path="res://tester.gd" id="1"]
  3. [ext_resource type="Environment" uid="uid://du5gp6ah0abgv" path="res://default_env.tres" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://cgqfdwd4g5e14" path="res://models/test_bed/test_bed.tscn" id="3"]
  5. [ext_resource type="ArrayMesh" uid="uid://btydvpp0agbfj" path="res://models/godot_ball.res" id="4_7al4s"]
  6. [ext_resource type="Material" uid="uid://bbfkhkmct7wu3" path="res://test_materials/blue.tres" id="5"]
  7. [ext_resource type="Material" uid="uid://b0qkg55h84i3f" path="res://test_materials/white.tres" id="6"]
  8. [ext_resource type="Material" uid="uid://d3u3snuqdn404" path="res://test_materials/gray.tres" id="7"]
  9. [ext_resource type="Material" path="res://test_materials/white_plastic.tres" id="8"]
  10. [ext_resource type="Material" uid="uid://qpdv7evfgbyw" path="res://test_materials/mirror.tres" id="9"]
  11. [ext_resource type="Material" uid="uid://djut62ilojfmq" path="res://test_materials/dark_wood.tres" id="10"]
  12. [ext_resource type="Material" uid="uid://ca5id5w12cprn" path="res://test_materials/stones.tres" id="11"]
  13. [ext_resource type="Material" uid="uid://dfsu6vtygh0tc" path="res://test_materials/brick.tres" id="12"]
  14. [ext_resource type="Material" uid="uid://dtui5o3potpen" path="res://test_materials/wool.tres" id="13"]
  15. [ext_resource type="Material" uid="uid://cg7l6w2h0aq22" path="res://test_materials/aluminium.tres" id="14"]
  16. [ext_resource type="Material" uid="uid://c5oxndmf0jbu3" path="res://test_materials/marble.tres" id="15"]
  17. [ext_resource type="Material" uid="uid://dv76cxap5uj7y" path="res://test_materials/cheese.tres" id="16"]
  18. [ext_resource type="Material" uid="uid://bx0jnmhhr8qwh" path="res://test_materials/wet_sand.tres" id="17"]
  19. [ext_resource type="Material" uid="uid://dct7oit1go38a" path="res://test_materials/rock.tres" id="18"]
  20. [ext_resource type="Material" uid="uid://bv6dr534vwcr1" path="res://test_materials/ice.tres" id="19"]
  21. [ext_resource type="Material" uid="uid://y4yhjq6ftc3l" path="res://test_materials/toon.tres" id="20"]
  22. [node name="MaterialTester" type="Node3D"]
  23. script = ExtResource("1")
  24. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  25. environment = ExtResource("2")
  26. [node name="Testers" type="Node3D" parent="."]
  27. [node name="White Plastic" parent="Testers" instance=ExtResource("3")]
  28. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -36, 0, 0)
  29. [node name="GodotBall" type="MeshInstance3D" parent="Testers/White Plastic"]
  30. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  31. mesh = ExtResource("4_7al4s")
  32. surface_material_override/0 = ExtResource("8")
  33. surface_material_override/1 = ExtResource("6")
  34. surface_material_override/2 = ExtResource("5")
  35. surface_material_override/3 = ExtResource("7")
  36. [node name="Mirror" parent="Testers" instance=ExtResource("3")]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -30, 0, 0)
  38. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Mirror"]
  39. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  40. mesh = ExtResource("4_7al4s")
  41. surface_material_override/0 = ExtResource("9")
  42. surface_material_override/1 = ExtResource("6")
  43. surface_material_override/2 = ExtResource("5")
  44. surface_material_override/3 = ExtResource("7")
  45. [node name="Dark Wood" parent="Testers" instance=ExtResource("3")]
  46. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24, 0, 0)
  47. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Dark Wood"]
  48. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  49. mesh = ExtResource("4_7al4s")
  50. surface_material_override/0 = ExtResource("10")
  51. surface_material_override/1 = ExtResource("6")
  52. surface_material_override/2 = ExtResource("5")
  53. surface_material_override/3 = ExtResource("7")
  54. [node name="Cheese" parent="Testers" instance=ExtResource("3")]
  55. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -18, 0, 0)
  56. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Cheese"]
  57. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  58. mesh = ExtResource("4_7al4s")
  59. surface_material_override/0 = ExtResource("16")
  60. surface_material_override/1 = ExtResource("6")
  61. surface_material_override/2 = ExtResource("5")
  62. surface_material_override/3 = ExtResource("7")
  63. [node name="Stones" parent="Testers" instance=ExtResource("3")]
  64. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12, 0, 0)
  65. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Stones"]
  66. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  67. mesh = ExtResource("4_7al4s")
  68. surface_material_override/0 = ExtResource("11")
  69. surface_material_override/1 = ExtResource("6")
  70. surface_material_override/2 = ExtResource("5")
  71. surface_material_override/3 = ExtResource("7")
  72. [node name="Brick" parent="Testers" instance=ExtResource("3")]
  73. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0)
  74. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Brick"]
  75. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  76. mesh = ExtResource("4_7al4s")
  77. surface_material_override/0 = ExtResource("12")
  78. surface_material_override/1 = ExtResource("6")
  79. surface_material_override/2 = ExtResource("5")
  80. surface_material_override/3 = ExtResource("7")
  81. [node name="Wool" parent="Testers" instance=ExtResource("3")]
  82. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Wool"]
  83. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  84. mesh = ExtResource("4_7al4s")
  85. surface_material_override/0 = ExtResource("13")
  86. surface_material_override/1 = ExtResource("6")
  87. surface_material_override/2 = ExtResource("5")
  88. surface_material_override/3 = ExtResource("7")
  89. [node name="Aluminium" parent="Testers" instance=ExtResource("3")]
  90. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
  91. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Aluminium"]
  92. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  93. mesh = ExtResource("4_7al4s")
  94. surface_material_override/0 = ExtResource("14")
  95. surface_material_override/1 = ExtResource("6")
  96. surface_material_override/2 = ExtResource("5")
  97. surface_material_override/3 = ExtResource("7")
  98. [node name="Marble" parent="Testers" instance=ExtResource("3")]
  99. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 0)
  100. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Marble"]
  101. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  102. mesh = ExtResource("4_7al4s")
  103. surface_material_override/0 = ExtResource("15")
  104. surface_material_override/1 = ExtResource("6")
  105. surface_material_override/2 = ExtResource("5")
  106. surface_material_override/3 = ExtResource("7")
  107. [node name="Wet Sand" parent="Testers" instance=ExtResource("3")]
  108. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18, 0, 0)
  109. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Wet Sand"]
  110. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  111. mesh = ExtResource("4_7al4s")
  112. surface_material_override/0 = ExtResource("17")
  113. surface_material_override/1 = ExtResource("6")
  114. surface_material_override/2 = ExtResource("5")
  115. surface_material_override/3 = ExtResource("7")
  116. [node name="Rock" parent="Testers" instance=ExtResource("3")]
  117. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24, 0, 0)
  118. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Rock"]
  119. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  120. mesh = ExtResource("4_7al4s")
  121. surface_material_override/0 = ExtResource("18")
  122. surface_material_override/1 = ExtResource("6")
  123. surface_material_override/2 = ExtResource("5")
  124. surface_material_override/3 = ExtResource("7")
  125. [node name="Ice" parent="Testers" instance=ExtResource("3")]
  126. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30, 0, 0)
  127. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Ice"]
  128. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  129. mesh = ExtResource("4_7al4s")
  130. surface_material_override/0 = ExtResource("19")
  131. surface_material_override/1 = ExtResource("6")
  132. surface_material_override/2 = ExtResource("5")
  133. surface_material_override/3 = ExtResource("7")
  134. [node name="Toon" parent="Testers" instance=ExtResource("3")]
  135. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36, 0, 0)
  136. [node name="GodotBall" type="MeshInstance3D" parent="Testers/Toon"]
  137. transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4)
  138. mesh = ExtResource("4_7al4s")
  139. surface_material_override/0 = ExtResource("20")
  140. surface_material_override/1 = ExtResource("6")
  141. surface_material_override/2 = ExtResource("5")
  142. surface_material_override/3 = ExtResource("7")
  143. [node name="CameraHolder" type="Node3D" parent="."]
  144. transform = Transform3D(0.877582, 0, -0.479427, 0, 1, 0, 0.479427, 0, 0.877582, -36, 2.8, -4)
  145. [node name="RotationX" type="Node3D" parent="CameraHolder"]
  146. transform = Transform3D(1, 0, 0, 0, 0.877582, 0.479427, 0, -0.479427, 0.877582, 0, 0, 0)
  147. [node name="Camera" type="Camera3D" parent="CameraHolder/RotationX"]
  148. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 5)
  149. fov = 65.0
  150. near = 0.1
  151. [node name="UI" type="Control" parent="."]
  152. layout_mode = 3
  153. anchors_preset = 15
  154. anchor_right = 1.0
  155. anchor_bottom = 1.0
  156. grow_horizontal = 2
  157. grow_vertical = 2
  158. mouse_filter = 2
  159. [node name="Background" type="OptionButton" parent="UI"]
  160. layout_mode = 0
  161. offset_left = 16.0
  162. offset_top = 16.0
  163. offset_right = 30.0
  164. offset_bottom = 36.0
  165. focus_mode = 0
  166. [node name="Previous" type="Button" parent="UI"]
  167. layout_mode = 1
  168. anchors_preset = 2
  169. anchor_top = 1.0
  170. anchor_bottom = 1.0
  171. offset_left = 16.0
  172. offset_top = -64.0
  173. offset_right = 152.0
  174. offset_bottom = -16.0
  175. grow_vertical = 0
  176. focus_mode = 0
  177. text = "« Previous"
  178. [node name="Next" type="Button" parent="UI"]
  179. layout_mode = 1
  180. anchors_preset = 3
  181. anchor_left = 1.0
  182. anchor_top = 1.0
  183. anchor_right = 1.0
  184. anchor_bottom = 1.0
  185. offset_left = -98.0
  186. offset_top = -64.0
  187. offset_right = -16.0
  188. offset_bottom = -16.0
  189. grow_horizontal = 0
  190. grow_vertical = 0
  191. focus_mode = 0
  192. text = "Next »"
  193. [node name="MaterialName" type="Label" parent="UI"]
  194. layout_mode = 1
  195. anchors_preset = 7
  196. anchor_left = 0.5
  197. anchor_top = 1.0
  198. anchor_right = 0.5
  199. anchor_bottom = 1.0
  200. offset_left = -0.5
  201. offset_top = -58.0
  202. offset_right = 0.5
  203. offset_bottom = -24.0
  204. grow_horizontal = 2
  205. grow_vertical = 0
  206. size_flags_vertical = 0
  207. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  208. theme_override_constants/outline_size = 5
  209. theme_override_font_sizes/font_size = 24
  210. [node name="Quit" type="Button" parent="UI"]
  211. layout_mode = 1
  212. anchors_preset = 1
  213. anchor_left = 1.0
  214. anchor_right = 1.0
  215. offset_left = -89.0
  216. offset_top = 16.0
  217. offset_right = -16.0
  218. offset_bottom = 52.0
  219. grow_horizontal = 0
  220. focus_mode = 0
  221. text = "Quit"
  222. [connection signal="item_selected" from="UI/Background" to="." method="_on_bg_item_selected"]
  223. [connection signal="pressed" from="UI/Previous" to="." method="_on_previous_pressed"]
  224. [connection signal="pressed" from="UI/Next" to="." method="_on_next_pressed"]
  225. [connection signal="pressed" from="UI/Quit" to="." method="_on_quit_pressed"]