15 lines
286 B
GDScript3
15 lines
286 B
GDScript3
|
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))
|
||
|
|