godot mask over mask

C++
func _pocess(delta):
	$Light2D.range_z_min = $Sprite.z_index  #Set mask only effecting specific image
	$Light2D.range_z_max = $Sprite.z_index
Source

Also in C++: