https://github.com/josephy5/keyholeoverlay-unityurp
A Keyhole Overlay effect created for Serious Point Games
https://github.com/josephy5/keyholeoverlay-unityurp
effects image-effect image-effects postprocessing shaderlab shaderlab-language shaderlabs shaders unity unity-3d unity-shader unity-shaders unity-urp unity3d urp vfx
Last synced: 3 months ago
JSON representation
A Keyhole Overlay effect created for Serious Point Games
- Host: GitHub
- URL: https://github.com/josephy5/keyholeoverlay-unityurp
- Owner: Josephy5
- Created: 2024-11-18T23:42:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-01T03:43:18.000Z (4 months ago)
- Last Synced: 2025-10-01T04:23:54.995Z (4 months ago)
- Topics: effects, image-effect, image-effects, postprocessing, shaderlab, shaderlab-language, shaderlabs, shaders, unity, unity-3d, unity-shader, unity-shaders, unity-urp, unity3d, urp, vfx
- Language: C#
- Homepage:
- Size: 3.44 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Keyhole Overlay Post Processing




A simple keyhole overlay effect, inspired by Dishonored's Peeping keyhole mechanic. It was created for Unity URP (6000.0.58f1) and for Serious Point Games as part of my studies in shader development.
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.
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).
You can refer to the effect's documentation for more info (should be in the repo and its release as a PDF file).
## Features
- Create keyhole overlays with a slight blur to the keyhole edges
- Can use custom keyhole textures to have unique keyhole overlays
- Can fade the keyhole overlay in or out
- Can adjust its cutout values to determine how much is cut out or be used as a transition
## Example[s]

The Keyhole Overlay effect
## Installation
1. Clone repo or download the folder and load it into an unity project.
2. Ensure that under the project settings > graphics > Render Graph, you enable Compatibility Mode on (meaning you have Render Graph Disabled).
3. Add the render feature of the effect to the Universal Renderer Data you are using.
4. Create a volume game object and load the effect's volume component in the volume profile to adjust values
5. If needed, you can change the effect's render pass event in its render feature under settings.
## Credits/Assets used
Some of the shader code is based from Dan Moran's Shaders Case Study—Pokémon Battle Transitions YouTube video ([Youtube Video Link](https://youtu.be/LnAoD7hgDxw?si=tCtTEOshaZdfLi6R)). It has since been modified to be used as a solution
to simulate a keyhole overlay for Serious Point Games. Could not find a license for the original code, Dan Moran said that he is unsure if he added a specific license to the code but he is open for it to be used in a
commercial product (in a reply to a commenter named hectorcastellizacharias7056).