Search Unity

Control position of the sun in HDRP?

Discussion in 'High Definition Render Pipeline' started by Velo222, Sep 15, 2019.

  1. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Is there any way to control the position of the sun in HDRP? I have a procedural sky component on my "Volume" (volume settings). I know the transform component on the Direction Light is de-coupled from controlling the sun as well, like it always has been.

    Just wondering if there's a way to script or control the sun moving through the sky for day/night cycle effects?
     
  2. Refeas

    Refeas

    Joined:
    Nov 8, 2016
    Posts:
    192
    I move the directional light via script and it moves the sun on the procedural sky just fine.
     
    GrayedFox likes this.
  3. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Oh really? I'll have to test that out then, thanks. :)

    Ok, I see, it's the rotation I need to use, not the position. I'm a dummy lol. Thank you! That's awesome. :D
     
    GrayedFox likes this.