Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Where to start on a shader for planets like this.

Discussion in 'Shader Graph' started by Dark_Seth, Aug 23, 2023.

  1. Dark_Seth

    Dark_Seth

    Joined:
    May 28, 2014
    Posts:
    130
    Hi All.

    Shaders is not my thing. I do know very little about them. Help here on how I can get a shader to generate a planet in this style below? Possible animate them as in the video.

    Watch the first 30 Seconds. You will see the planets rotate


    upload_2023-8-23_8-52-4.png
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,108
    Short version is you just lerp between scrolling textures.

    You need some fancy texture for clouds, you probably want two of them to create paralax effect when you scroll them so one should scroll faster than the other, then mask the whole thing with circle (it can be circle texture).
    Simple example:
    upload_2023-8-23_14-33-18.png
    I used linear noise textures instead of patterns and separate color nodes, but you can use texture alpha to lerp between layers and use the rgb of texture as color.

    GIF 23.08.2023 14-37-10.gif
     
    BenCloward likes this.
  3. Dark_Seth

    Dark_Seth

    Joined:
    May 28, 2014
    Posts:
    130
    WOW Thank you!. Will work on this. use yours as a base. I see what you are doing with it! Thank you kindly. Will Post again here once I am happy with some changes I made