- Home /
Classic Game Distance masking darkness/fog help
I'm trying to achieve an effect similar to in the photo. As you can see, the distance is masked by darkness, creating a "spooky" effect. Could this be solved with a shader, and if so, how?
Not yet, but I'll try it out. Not sure if it will look nice with the pixelate shader.
Answer by jasonlu00 · Sep 04, 2017 at 12:39 AM
You can write a shader to make objects fade out after certain distance like this one: http://answers.unity3d.com/questions/1305722/add-distance-fade-to-his-shader.html
And then, set your main camera's "Clear Flags" to "Solid Color" and "Background" to the color you prefer.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
How do I paint the part of a model that is embedded in another model?, 0 Answers
Having trouble to getting the height from an object being displaced by a shader 1 Answer
Set the speed of an object by its distance with another object 1 Answer