[Unity][Shader] Night Vision




A simple shader to make a night vision effect.

Features

- Screen colorization
- Vignette effect
- Noise
- Scene diffuse (unlit) and scene color (lit) buffer are blended, allow to see in the complete dark while still having luminance difference on pixel affected by lights
- Option to have pixels with high luminance tending toward white

Screenshots

Without effect

With effect


With/ Without (drag the cursor)

Video


Source Code





Put the image effect script on your camera and make a material using the night vision shader. Then you just have to modify the material parameter and to enjoy it.
Note that Unity 2018 works with stack and it needs some modifications to works with stack: https://github.com/Unity-Technologies/PostProcessing/wiki/Writing-Custom-Effects

Comments

Post a Comment

Popular posts from this blog

[UE4][Shader] Post process: tresholded black and white with sobel edge

[FPS Maker] Custom FPS Game Engine