Overhead light can take initial mask

This commit is contained in:
Rob Kelly 2025-07-01 12:55:20 -06:00
parent cedd7d8108
commit 660e851007

View File

@ -1,11 +1,16 @@
extends Node3D extends Node3D
@export var threshold := 100.0 @export var threshold := 100.0
@export var initial_mask: Texture
@onready var spot_light_3d: SpotLight3D = %SpotLight3D @onready var spot_light_3d: SpotLight3D = %SpotLight3D
@onready var gunk_body: GunkBody = %GunkBody @onready var gunk_body: GunkBody = %GunkBody
func _ready() -> void: func _ready() -> void:
if initial_mask:
gunk_body.initial_mask = initial_mask
_deferred_init.call_deferred() _deferred_init.call_deferred()