cirnogodot/3D/TrenchBroom/EntityScripts/Lights/light_spot.gd
2025-06-12 11:50:22 +02:00

8 lines
267 B
GDScript

@tool
class_name LightSpot
extends SpotLight3D
func _func_godot_apply_properties(props: Dictionary) -> void:
LightBase._func_godot_apply_properties(self, props)
spot_angle = props["angle"] as float
spot_range = (props["range"] as float) * TbManager.INVERSE_SCALE