|
1 | | -# KeyholeOverlayPostProcessing-UnityURP |
| 1 | + |
| 2 | + |
| 3 | +# Keyhole Overlay Post Processing |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
2 | 8 |
|
| 9 | +A simple keyhole overlay effect, inspired by Dishonored's Peeping keyhole mechanic. It was created for Unity URP (6000.0.27f1) and for Serious Point Games as part of my studies in shader development. |
| 10 | +It could theoretically run on Unity 2022 since its using the same code I used for the effects's render feature and pass within Unity 2022, but it is untested. |
| 11 | + |
| 12 | +The effect was built on top of the transition post processing code I have, You can refer to it at [Github Repo Link](https://github.com/Josephy5/Transition-Post-Processing) |
| 13 | + |
| 14 | +## Features |
| 15 | +- Create keyhole overlays with a slight blur to the keyhole edges |
| 16 | +- Can use custom keyhole textures to have unique keyhole overlays |
| 17 | +- Can fade the keyhole overlay in or out |
| 18 | +- Can adjust its cutout values to determine how much is cut out or be used as a transition |
| 19 | + |
| 20 | +## Example[s] |
| 21 | + |
| 22 | +The Keyhole Overlay effect |
| 23 | + |
| 24 | +## Installation |
| 25 | +1. Clone repo or download the folder and load it into an unity project. |
| 26 | +2. Ensure that under the project settings > graphics > Render Graph, you enable Compatibility Mode on (meaning you have Render Graph Disabled). |
| 27 | +3. Add the render feature of the effect to the Universal Renderer Data you are using. |
| 28 | +4. Create a volume game object and load the effect's volume component in the volume profile to adjust values |
| 29 | +5. If needed, you can change the effect's render pass event in its render feature under settings. |
| 30 | + |
| 31 | +## Credits/Assets used |
| 32 | +Some of the shader code is based from Dan Moran's Shaders Case Study—Pokémon Battle Transitions YouTube video |
| 33 | +[-Youtube Video Link-](https://youtu.be/LnAoD7hgDxw?si=tCtTEOshaZdfLi6R). |
0 commit comments