sky.gd 687 B

1234567891011121314151617181920212223
  1. extends MeshInstance
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. # Called when the node enters the scene tree for the first time.
  6. func _ready():
  7. #print("sky is ready")
  8. visible=true
  9. #scale = Vector3(1,200,100)
  10. var tw = Tween.new()
  11. # tw.interpolate_property(self,"scale",scale,Vector3(100,200,100),60,Tween.TRANS_CUBIC,Tween.EASE_IN_OUT)
  12. # add_child(tw)
  13. # tw.start()
  14. # var s = self
  15. # var rid = mesh.get_rid()
  16. # var rid2 = get_surface_material(0).get_rid()
  17. #var rid = RID(s)
  18. #print (rid.get_id())
  19. #print (rid.get_id())
  20. # VisualServer.instance_geometry_set_draw_range(rid,0,1000000,1,1)
  21. # VisualServer.instance_geometry_set_draw_range(rid2,0,1000000,1,1)