Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How to add dynamic moon/planet to sky

Discussion in 'General Graphics' started by robert_val1, May 6, 2024.

  1. robert_val1

    robert_val1

    Joined:
    Mar 27, 2018
    Posts:
    10
    How do I go about adding a dynamic moon/planet to the skybox (URP), similar to this (Skyrim):

    Requirements:
    1. Planet should move independently from stars.
    2. Dynamic clouds on the planet.
    3. Lightning storms on planet (will look really cool when there is lightning in the dark area).


    1. How do I create the planet it self (oceans, continents) earth-like, but not earth?
    2. Does it need to be a 3D model or can I get away with a 2D image for the planet?
    2. How do I do the dynamic weather(clouds)?
    3. How do I do the lightning?

    Thanks in advance :D
     
  2. POOKSHANK

    POOKSHANK

    Joined:
    Feb 8, 2022
    Posts:
    382
    Creating a procedural skybox in Unity's Shader Graph | Medium

    here's a basic run through, unity's default skybox also has code to create a sun based on directional light you could look at

    though if you really want hyperrealistic moon asset you may be better off using some kind of inverted sphere layout with multiple shell layers, so as to properly show the layering of things like clouds.