cirnogodot/3D/TrenchBroom/EntityScripts/Lights/light_spot.gd

8 lines
267 B
GDScript3
Raw Normal View History

2025-06-12 11:50:22 +02:00
@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