Fill the room with dense animated knee-high fog

This commit is contained in:
JariKo
2026-10-28 15:59:52 +02:00
parent 14c1e0934e
commit 6820dd48ff
6 changed files with 48 additions and 8 deletions
+3
View File
@@ -128,6 +128,9 @@ func flush():
node.cast_shadow=GeometryInstance3D.SHADOW_CASTING_SETTING_OFF
func update(camera):
if is_instance_valid(growth.smog):
growth.smog.material.set_shader_parameter("player_position",g.player.position)
growth.smog.material.set_shader_parameter("fog_time",g.time)
# Cut away near-side upper walls, so 360-degree orbit cannot hide the work bay.
for n in walls:
if not is_instance_valid(n):continue