Rewritten nebula shader
This commit is contained in:
parent
bef15301cb
commit
0c684417f5
5 changed files with 42 additions and 21 deletions
6
scripts/nebula.gd
Normal file
6
scripts/nebula.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends ColorRect
|
||||
|
||||
@onready var ship = get_tree().current_scene.get_node("MainShip")
|
||||
|
||||
func _physics_process(_delta):
|
||||
material.set_shader_parameter("offset",ship.global_position)
|
||||
Loading…
Add table
Add a link
Reference in a new issue