display_pp.gd 712 B

1234567891011121314151617181920212223242526272829303132
  1. extends ViewportContainer
  2. #udate uniforms
  3. var iTime=0.0
  4. var iFrame=0
  5. var conf_click=-10.0
  6. var play_click=0.0
  7. var ppoff=false
  8. var disable_refl=false
  9. var disable_panorama=false
  10. var ispause=true
  11. func _ready():
  12. get_tree().paused=true
  13. pass
  14. onready var gui_c=get_tree().get_root().get_node("scene/gui_c/vp/gui")
  15. func _input(event):
  16. if(Input.is_mouse_button_pressed(BUTTON_LEFT)):
  17. gui_c._on_Ok_pressed()
  18. func _process(delta):
  19. self.material.set("shader_param/iTime",iTime)
  20. self.material.set("shader_param/conf_click",conf_click)
  21. self.material.set("shader_param/play_click",play_click)
  22. self.material.set("shader_param/iFrame",iFrame)
  23. self.material.set("shader_param/ppoff",ppoff)
  24. iTime+=delta
  25. iFrame+=1