Particle effects do not cast shadows

This commit is contained in:
Rob Kelly 2025-03-16 19:18:15 -06:00
parent f40b1bee2e
commit 59cf3be055
4 changed files with 10 additions and 2 deletions

View File

@ -47,6 +47,7 @@ material = SubResource("StandardMaterial3D_qc6xg")
size = Vector2(0.02, 0.02) size = Vector2(0.02, 0.02)
[node name="FloatingDust" type="GPUParticles3D"] [node name="FloatingDust" type="GPUParticles3D"]
cast_shadow = 0
amount = 32 amount = 32
lifetime = 12.0 lifetime = 12.0
preprocess = 12.0 preprocess = 12.0

View File

@ -11,6 +11,7 @@ script = ExtResource("1_xntcr")
[node name="LaserDust" parent="." instance=ExtResource("2_m5xmf")] [node name="LaserDust" parent="." instance=ExtResource("2_m5xmf")]
unique_name_in_owner = true unique_name_in_owner = true
cast_shadow = 0
[node name="GlowLight" type="OmniLight3D" parent="."] [node name="GlowLight" type="OmniLight3D" parent="."]
unique_name_in_owner = true unique_name_in_owner = true

View File

@ -12,7 +12,7 @@
material = ExtResource("2_0pfy3") material = ExtResource("2_0pfy3")
top_radius = 0.0 top_radius = 0.0
bottom_radius = 0.2 bottom_radius = 0.2
height = 2.2 height = 3.2
radial_segments = 16 radial_segments = 16
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_nc5qr"] [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_nc5qr"]
@ -59,11 +59,12 @@ transform = Transform3D(1, 0, 0, 0, 0.997564, -0.0697565, 0, 0.0697565, 0.997564
[node name="LaserCast" parent="Muzzle" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_qmoff")] [node name="LaserCast" parent="Muzzle" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_qmoff")]
unique_name_in_owner = true unique_name_in_owner = true
target_position = Vector3(0, 0, -3)
parent_tool = NodePath("../..") parent_tool = NodePath("../..")
[node name="SprayEffect" type="MeshInstance3D" parent="Muzzle"] [node name="SprayEffect" type="MeshInstance3D" parent="Muzzle"]
unique_name_in_owner = true unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, -4.47035e-08, -1, 0, 1, -4.47035e-08, 0, 0, -1.1) transform = Transform3D(1, 0, 0, 0, -4.47035e-08, -1, 0, 1, -4.47035e-08, 0, 0, -1.6)
layers = 2 layers = 2
sorting_offset = 3.0 sorting_offset = 3.0
mesh = SubResource("CylinderMesh_j5thb") mesh = SubResource("CylinderMesh_j5thb")
@ -72,6 +73,7 @@ skeleton = NodePath("../..")
[node name="BeamParticles1" type="GPUParticles3D" parent="Muzzle"] [node name="BeamParticles1" type="GPUParticles3D" parent="Muzzle"]
unique_name_in_owner = true unique_name_in_owner = true
layers = 2 layers = 2
cast_shadow = 0
amount = 16 amount = 16
lifetime = 0.5 lifetime = 0.5
local_coords = true local_coords = true
@ -81,6 +83,7 @@ draw_pass_1 = SubResource("QuadMesh_fgb4j")
[node name="BeamParticles2" type="GPUParticles3D" parent="Muzzle"] [node name="BeamParticles2" type="GPUParticles3D" parent="Muzzle"]
unique_name_in_owner = true unique_name_in_owner = true
layers = 2 layers = 2
cast_shadow = 0
lifetime = 0.2 lifetime = 0.2
local_coords = true local_coords = true
process_material = SubResource("ParticleProcessMaterial_vwgy4") process_material = SubResource("ParticleProcessMaterial_vwgy4")
@ -123,6 +126,7 @@ grow_vertical = 2
[node name="NozzleTexture" type="TextureRect" parent="HUDTool/Rumbler/NozzleMarker/HUDElement"] [node name="NozzleTexture" type="TextureRect" parent="HUDTool/Rumbler/NozzleMarker/HUDElement"]
texture_filter = 3 texture_filter = 3
layout_mode = 0
offset_left = -256.0 offset_left = -256.0
offset_top = -186.0 offset_top = -186.0
offset_right = -192.0 offset_right = -192.0

View File

@ -241,6 +241,7 @@ cull_mask = 1048573
[node name="BeamParticles1" type="GPUParticles3D" parent="Muzzle/Pivot"] [node name="BeamParticles1" type="GPUParticles3D" parent="Muzzle/Pivot"]
unique_name_in_owner = true unique_name_in_owner = true
layers = 2 layers = 2
cast_shadow = 0
amount = 16 amount = 16
lifetime = 0.5 lifetime = 0.5
local_coords = true local_coords = true
@ -250,6 +251,7 @@ draw_pass_1 = SubResource("QuadMesh_trcry")
[node name="BeamParticles2" type="GPUParticles3D" parent="Muzzle/Pivot"] [node name="BeamParticles2" type="GPUParticles3D" parent="Muzzle/Pivot"]
unique_name_in_owner = true unique_name_in_owner = true
layers = 2 layers = 2
cast_shadow = 0
lifetime = 0.2 lifetime = 0.2
local_coords = true local_coords = true
process_material = SubResource("ParticleProcessMaterial_lyk2j") process_material = SubResource("ParticleProcessMaterial_lyk2j")