floor.gd 480 B

12345678910111213
  1. extends Particles
  2. onready var global_v=get_node("../../../scene")
  3. onready var post_p=get_tree().get_root().get_node("scene/main_screen")
  4. func _ready():
  5. self.material_override.set("shader_param/tex_panorama",global_v.iChannel_panorama)
  6. pass
  7. func _process(delta):
  8. self.material_override.set("shader_param/disable_panorama",post_p.disable_panorama)
  9. self.process_material.set("shader_param/iTime",global_v.iTime)
  10. self.material_override.set("shader_param/iTime",global_v.iTime)