10 lines
221 B
GDScript3
10 lines
221 B
GDScript3
|
extends MeshInstance
|
||
|
|
||
|
onready var util = get_node("/root/Util")
|
||
|
onready var player = util.player
|
||
|
|
||
|
|
||
|
func _process(delta):
|
||
|
var mat = get_active_material(0)
|
||
|
mat.set_shader_param("player_pos", player.get_camera_position())
|