First_Person_Slapper/SlapGauge.gd

15 lines
286 B
GDScript3
Raw Normal View History

2022-10-11 12:48:08 -04:00
extends ColorRect
var Mat;
var fill = 0.0;
var kill = 0.66;
# Called when the node enters the scene tree for the first time.
func _ready():
pass
func _process(delta):
material.set_shader_param("fill",clamp(fill, 0.0, 1.0))
material.set_shader_param("kill",clamp(kill, 0.0, 1.0))