aboutsummaryrefslogtreecommitdiff
path: root/client/map/environment.gd
blob: 5fcfc53d950d9a7cb4a87d82ee2e9eccd77fed98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extends Node3D

func update(active: Array):
	if active.has("night"):
		pass
	
	$Wind.emitting = active.has("wind")
	var a: ParticleProcessMaterial = $Wind.process_material
	# TODO ramp
	a.initial_velocity_max = 15. if active.has("wind") else 0.
	a.initial_velocity_min = 15. if active.has("wind") else 0.

	# TODO ramp
	$Rain.emitting = active.has("rain")
	$Rain.amount = 500 if active.has("rain") else 0