7 lines
190 B
GDScript3
7 lines
190 B
GDScript3
|
extends MeshInstance
|
||
|
|
||
|
onready var player = $"/root".find_node("Player", true, false)
|
||
|
|
||
|
func _process(_delta):
|
||
|
get_active_material(0).set_shader_param("player_pos", player.camera_position())
|