Guest User

Untitled

a guest
Apr 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class WW : MonoBehaviour {
  7.  
  8. // Use this for initialization
  9. public float RotationSpeed;
  10. public float Expsr;
  11. public Slider mainSlider;
  12. public void SubmitSliderSetting()
  13. {
  14. Debug.Log(mainSlider.value);
  15. }
  16.  
  17. private float Rotation;
  18. private float Exposure;
  19. void Start () {
  20.  
  21.  
  22.  
  23. }
  24.  
  25. // Update is called once per frame
  26. void Update () {
  27. RenderSettings.skybox.SetFloat("_Rotation", Rotation);
  28. Rotation += RotationSpeed;
  29.  
  30. RenderSettings.skybox.SetFloat("_Exposure", Exposure);
  31. Exposure += RotationSpeed;
  32.  
  33. DynamicGI.UpdateEnvironment();
  34.  
  35. }
  36. }
Add Comment
Please, Sign In to add comment