cosmic/scripts/nebula.gd
2024-01-13 17:23:49 +05:00

6 lines
179 B
GDScript

extends ColorRect
@onready var ship = get_tree().current_scene.get_node("MainShip")
func _physics_process(_delta):
material.set_shader_parameter("offset",ship.global_position)