Shadows decals

This commit is contained in:
MaddoScientisto 2025-12-28 22:53:31 +01:00
commit 1dfce7802b
12 changed files with 5344 additions and 1520 deletions

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=3 uid="uid://d28e1t2c0lwbp"]
[gd_scene load_steps=9 format=3 uid="uid://d28e1t2c0lwbp"]
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_xnqcl"]
[ext_resource type="Texture2D" uid="uid://cfldr7l7dearo" path="res://Sprites/Bullets/mid_bullet_red.png" id="2_xnqcl"]
[ext_resource type="AudioStream" uid="uid://b3rm0vj6x54k4" path="res://SFX/th_knockoff_sfx/click_collect.wav" id="3_xyes7"]
[ext_resource type="Material" uid="uid://ogkwkokxevat" path="res://Resources/Particles/graze_particle_3D.tres" id="4_t5ure"]
[ext_resource type="Texture2D" uid="uid://dq60rr6ejqd2t" path="res://Sprites/Actors/Shadow-Blob_001.png" id="5_nd0aw"]
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
radius = 0.161126
@ -49,6 +50,14 @@ local_coords = true
process_material = ExtResource("4_t5ure")
draw_pass_1 = SubResource("QuadMesh_nd0aw")
[node name="Shadow" type="Decal" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.36669922, 0)
size = Vector3(0.5, 1.2333984, 0.5)
texture_albedo = ExtResource("5_nd0aw")
modulate = Color(1, 1, 1, 0.5)
normal_fade = 0.5
cull_mask = 1048574
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://c133312rx63ps"]
[gd_scene load_steps=5 format=3 uid="uid://c133312rx63ps"]
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_ojpd6"]
[ext_resource type="Texture2D" uid="uid://bdyd0bht18n47" path="res://Sprites/EnemyProjectile.png" id="2_ojpd6"]
[ext_resource type="Texture2D" uid="uid://dq60rr6ejqd2t" path="res://Sprites/Actors/Shadow-Blob_001.png" id="3_7vcns"]
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
radius = 0.083358
@ -24,6 +25,13 @@ shape = SubResource("SphereShape3D_pklkt")
[node name="VisibleOnScreenNotifier" type="VisibleOnScreenNotifier3D" parent="."]
[node name="Shadow" type="Decal" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.3623047, 0)
size = Vector3(0.5, 1.2246094, 0.5)
texture_albedo = ExtResource("3_7vcns")
normal_fade = 0.5
cull_mask = 1048574
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=3 uid="uid://crcdug04y1dxy"]
[gd_scene load_steps=9 format=3 uid="uid://crcdug04y1dxy"]
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_1hlxa"]
[ext_resource type="Texture2D" uid="uid://dooyhu8vt63vm" path="res://Sprites/Bullets/mid_bullet_blue.png" id="2_1hlxa"]
[ext_resource type="AudioStream" uid="uid://b3rm0vj6x54k4" path="res://SFX/th_knockoff_sfx/click_collect.wav" id="3_4sq4m"]
[ext_resource type="Material" uid="uid://ogkwkokxevat" path="res://Resources/Particles/graze_particle_3D.tres" id="4_83jmy"]
[ext_resource type="Texture2D" uid="uid://dq60rr6ejqd2t" path="res://Sprites/Actors/Shadow-Blob_001.png" id="5_a0er3"]
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
radius = 0.161126
@ -49,6 +50,13 @@ local_coords = true
process_material = ExtResource("4_83jmy")
draw_pass_1 = SubResource("QuadMesh_nd0aw")
[node name="Shadow" type="Decal" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.40163803, 0)
size = Vector3(0.5, 1.1991043, 0.5)
texture_albedo = ExtResource("5_a0er3")
normal_fade = 0.5
cull_mask = 1048574
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]