decal.tscn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [gd_scene load_steps=5 format=3 uid="uid://cblgs4wjl5s1e"]
  2. [ext_resource type="Texture2D" uid="uid://ccgkupemr6e1q" path="res://textures/paint.png" id="1_1ro0v"]
  3. [sub_resource type="Animation" id="Animation_cxvbq"]
  4. length = 0.001
  5. tracks/0/type = "value"
  6. tracks/0/imported = false
  7. tracks/0/enabled = true
  8. tracks/0/path = NodePath("Decal:modulate")
  9. tracks/0/interp = 1
  10. tracks/0/loop_wrap = true
  11. tracks/0/keys = {
  12. "times": PackedFloat32Array(0),
  13. "transitions": PackedFloat32Array(1),
  14. "update": 0,
  15. "values": [Color(1, 1, 1, 1)]
  16. }
  17. tracks/1/type = "value"
  18. tracks/1/imported = false
  19. tracks/1/enabled = true
  20. tracks/1/path = NodePath("Decal:extents")
  21. tracks/1/interp = 1
  22. tracks/1/loop_wrap = true
  23. tracks/1/keys = {
  24. "times": PackedFloat32Array(0),
  25. "transitions": PackedFloat32Array(1),
  26. "update": 0,
  27. "values": [Vector3(0, 0, 0)]
  28. }
  29. [sub_resource type="Animation" id="Animation_ev4ve"]
  30. resource_name = "fade"
  31. length = 5.0
  32. tracks/0/type = "method"
  33. tracks/0/imported = false
  34. tracks/0/enabled = true
  35. tracks/0/path = NodePath(".")
  36. tracks/0/interp = 1
  37. tracks/0/loop_wrap = true
  38. tracks/0/keys = {
  39. "times": PackedFloat32Array(5),
  40. "transitions": PackedFloat32Array(1),
  41. "values": [{
  42. "args": [],
  43. "method": &"queue_free"
  44. }]
  45. }
  46. tracks/1/type = "value"
  47. tracks/1/imported = false
  48. tracks/1/enabled = true
  49. tracks/1/path = NodePath("Decal:modulate")
  50. tracks/1/interp = 1
  51. tracks/1/loop_wrap = true
  52. tracks/1/keys = {
  53. "times": PackedFloat32Array(0, 5),
  54. "transitions": PackedFloat32Array(1, 1),
  55. "update": 0,
  56. "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
  57. }
  58. tracks/2/type = "value"
  59. tracks/2/imported = false
  60. tracks/2/enabled = true
  61. tracks/2/path = NodePath("Decal:extents")
  62. tracks/2/interp = 1
  63. tracks/2/loop_wrap = true
  64. tracks/2/keys = {
  65. "times": PackedFloat32Array(0, 0.2),
  66. "transitions": PackedFloat32Array(0.5, 0.5),
  67. "update": 0,
  68. "values": [Vector3(0, 0, 0), Vector3(1, 1, 1)]
  69. }
  70. [sub_resource type="AnimationLibrary" id="AnimationLibrary_kqdmn"]
  71. _data = {
  72. "RESET": SubResource("Animation_cxvbq"),
  73. "fade": SubResource("Animation_ev4ve")
  74. }
  75. [node name="DecalHolder" type="Node3D"]
  76. [node name="Decal" type="Decal" parent="."]
  77. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
  78. extents = Vector3(0, 0, 0)
  79. texture_albedo = ExtResource("1_1ro0v")
  80. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  81. autoplay = "fade"
  82. libraries = {
  83. "": SubResource("AnimationLibrary_kqdmn")
  84. }