8 lines
218 B
GDScript3
8 lines
218 B
GDScript3
|
extends Spatial
|
||
|
|
||
|
|
||
|
onready var screen_texture = get_node("ScreenTexture") as ColorRect
|
||
|
|
||
|
|
||
|
func _process(delta: float) -> void:
|
||
|
screen_texture.material.set_shader_param("mask_factor", Pills.get_level() / Pills.get_max())
|