Sky_mesh_uni.gd 257 B

123456789
  1. extends MeshInstance
  2. onready var sky_b=get_tree().get_root().get_node("scene/Sky")
  3. func _ready():
  4. var iChannel=sky_b.get_viewport().get_texture()
  5. iChannel.flags=Texture.FLAG_FILTER
  6. self.get_surface_material(0).set("shader_param/tex_panorama",iChannel)