retrace/Characters/Player/PillCameras.gd

8 lines
218 B
GDScript3
Raw Normal View History

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