khanat-assets---3d-godot-cl.../previewer/sky.gd

23 lines
574 B
GDScript3
Raw Normal View History

2019-10-08 13:44:51 +00:00
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)/100)
func absb_scb(value):
self.material.set("shader_param/ABSORPTION",float(value)/10)
func thick_scb(value):
self.material.set("shader_param/THICKNESS",value)
func step_scb(value):
self.material.set("shader_param/STEPS",value)