Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Looking for help with a simple atmosphere shader.

Discussion in 'Shaders' started by Buckslice, Nov 5, 2014.

  1. Buckslice

    Buckslice

    Joined:
    Sep 12, 2014
    Posts:
    5
    Hi everyone, I'm developing a space exploration game in Unity and am looking to improve my atmosphere shader. Currently I just have it as a transparent diffuse shader with no backface culling (so you can see it on the inside too). Here's what it looks like:

    I'm looking to replicate the look of the atmospheres in this video:

    It seems like the brightness of each vertex is based off the angle of the camera to the light source or something. I'm getting better at writing shaders and I know how to math, but I'm not really sure how to get started on this. I've read about atmospheric scattering, but this seems like a simpler solution, and I think it would fit better with the art style I'm going for. Any resources or ideas would be much appreciated!

    Thanks
    -Buck