set_uniforms.gd 391 B

123456789101112131415
  1. extends MeshInstance
  2. onready var global_v=get_tree().get_root().get_node("scene")
  3. onready var sky_b=get_tree().get_root().get_node("scene/Sky")
  4. func _ready():
  5. var iChannel=sky_b.get_viewport().get_texture()
  6. iChannel.flags=Texture.FLAG_FILTER
  7. self.get_surface_material(0).set("shader_param/tex_panorama",iChannel)
  8. pass
  9. func _process(delta):
  10. self.rotate_z(0.001)
  11. self.rotate_y(0.002)