Update 1.3 : Added support for URP.
This asset is a combination of shaders and script, allowing you to make materials invisible unless they are in proximity of specific objects.
Just apply the provided shaders to anything that you want to turn invisible, and add the provided "Seer" component to any entity that you want to reveal invisibility.
Playable demo (1.2) available here.
Notes :
All shaders provided are transparent shaders and thus have certain limitations :
- They can emit but not receive shadows.
- Lightmapping may interact improperly depending on camera position.
- Ordering problems may appear if they are mixed with other transparent materials.