meat_madness_redux/godot/effects/SquishyGround.gd

10 lines
221 B
GDScript

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