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

Night lights that appears from long distance but when near are small.

Discussion in 'Shaders' started by alexandresk, Apr 1, 2017.

  1. alexandresk

    alexandresk

    Joined:
    Jul 11, 2013
    Posts:
    51
    I do not know a better way to say it. But is basically that, I need a shader that light a full pixel in very long distance but when close is a small object like 8x8 pixels.

    With small objects with emission, when they are far the one pixel disappears. I try somethings with flares but not with good results.

    Similar to real lights in a city. I know a little about shaders and have made some but I have no idea about how to do it.

    Any ideas? Thx
     
  2. brownboot67

    brownboot67

    Joined:
    Jan 5, 2013
    Posts:
    375
    Scale the vertices up the further the object is away from the camera in the vertex program.