Sky.gd 336 B

123456789101112131415161718
  1. extends Sprite
  2. #udate uniforms
  3. export (float) var iTime=0.0
  4. export (int) var iFrame=0
  5. export (float) var sun_pos=0.0
  6. func _ready():
  7. pass
  8. func _process(delta):
  9. self.material.set("shader_param/iTime",iTime)
  10. self.material.set("shader_param/sun_pos",sun_pos)
  11. self.material.set("shader_param/iFrame",iFrame)
  12. iTime+=delta
  13. iFrame+=1