Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Well done! This was satisfying to beat! I'm curious how you did the light reveal shader. If it's lit by a certain percent does a collider disappear?

(+2)

Glad you liked it! There are two parts to the effect:
The visual hole is done by fetching the light attenuation at a fragment, if it is high enough, we discard it (overlayed with some screen space noise)
The collider hole is done by splitting the wall collider in four (left, top, right, bottom). The colliders are scaled and positioned based on four ray casts from the light source (an approximation of the spotlight volume). So the result is a rectangular hole in the collider that encompasses the circular visual hole.

Hope that makes sense :D  

(+1)

I did a small post on the visual part of the effect if you are curious https://jonasmortensen.itch.io/oink/devlog/352582/how-we-did-the-holes

Nice! I'm going to likely be referring to this again when I try something similar! Thanks for sharing!