meat_madness_redux/godot/tests/ground_squish/Plane.gd

7 lines
190 B
GDScript

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())