Sky_mesh_unix.gd 274 B

12345678910111213
  1. extends MeshInstance
  2. export (float) var iTime=0.0;
  3. export (int) var iFrame=0;
  4. func _ready():
  5. pass
  6. func _process(delta):
  7. self.get_surface_material(0).set("shader_param/iTime",iTime)
  8. self.get_surface_material(0).set("shader_param/iFrame",iFrame)
  9. iTime+=delta
  10. iFrame+=1