The package which contains the shader developped for the video game Dead Signs
To install this package you can do one of this:
-
Using Package Manager Window
- Opening the Package Manager Window: Window > Package Manager
- Wait for it to load
- Click on the top left button
+
> Add package from git URL - Copy paste the repository link
- Press enter
-
Modifying manifest.json file Add the following to your
manifest.json
file (which is under your project location inPackages
folder)
{
"dependancies": {
...
"com.rikoo.dead-signs-shader": "https://github.com/ErikRikoo/Dead-Signs-Shaders.git",
...
}
}
Sometimes Unity has some hard time updating git dependencies so when you want to update the package, follow this steps:
- Go into
package-lock.json
file (same place thatmanifest.json
one) - It should look like this:
{
"dependencies": {
...
"com.rikoo.dead-signs-shader": {
"version": "https://github.com/ErikRikoo/Dead-Signs-Shaders.git",
"depth": 0,
"source": "git",
"dependencies": {},
"hash": "hash-number-there"
},
...
}
- Remove the "com.rikoo.dead-signs-shader" and save the file
- Get back to Unity
- Let him refresh
- Package should be updated
Just include it and test the shaders 😄
For this effect, we tried to reproduce an old tv screen while running some post processing stuff on wolrd space UI. It gave multiple effects:
- Horizontal Lines to simulate pixels while drawing some lines on top of the texture
- Vertical pixel count which allows you to specify an amount of lines (not really precise)
- Vertical Pixel Intensity gives you the ability to make the lines hard or smoother
- Vignetting
- Vignette Color which allows you to specify which color you want for the vignette, defaulted to black
- Vignette Intensity
- Vignette Roundness
- **Vignette Smoothness
- Distorsion which deforms the image as there was some glass on it
- Distorsion Intensity is there to give the percentage of distorsion, it can be negative to inverse the effect
This shader can be used as on overlay over an object to show that it is interactible. It looks like effect we can see un The Last Of Us and has been inspired by febucci tutorial. You can configure the speed of the effect and the highlight color.
Feel free to suggest features by creating an issue, any idea is welcome !