Slap Gauge
This commit is contained in:
14
SlapGauge.gd
Normal file
14
SlapGauge.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user