22 lines
571 B
GDScript
22 lines
571 B
GDScript
extends Sprite
|
|
|
|
onready var global_v=get_tree().get_root().get_node("previewer")
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _process(delta):
|
|
self.material.set("shader_param/iTime",global_v.iTime)
|
|
self.material.set("shader_param/iFrame",global_v.iFrame)
|
|
|
|
func cov_scb(value):
|
|
self.material.set("shader_param/COVERAGE",float(value))
|
|
|
|
func thick_scb(value):
|
|
self.material.set("shader_param/THICKNESS",value)
|
|
|
|
func absb_scb(value):
|
|
self.material.set("shader_param/ABSORPTION",float(value))
|
|
|
|
func step_scb(value):
|
|
self.material.set("shader_param/STEPS",value)
|