Guest User

Untitled

a guest
Apr 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 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. private float Exposure;
  11. public Slider mainSlider;
  12. public void SubmitSliderSetting ()
  13. {
  14. Debug.Log(mainSlider.value);
  15. }
  16. private float Rotation;
  17. void Start () {
  18.  
  19.  
  20.  
  21. }
  22.  
  23. // Update is called once per frame
  24. void Update () {
  25. RenderSettings.skybox.SetFloat("_Rotation", Rotation);
  26. Rotation += RotationSpeed;
  27.  
  28. DynamicGI.UpdateEnvironment();
  29.  
  30. }
  31. }
Add Comment
Please, Sign In to add comment