• Register

Wonhon: A Vengeful Spirit is a paranormal stealth action game where you play as a vengeful spirit of a girl who was killed during a bloody and cruel occupation of her country. Now, she has returned from the dead. Gifted with powers from the Jeoseung Saja, the God of Death, she sets out to exact terrible vengeance.

Post news Report RSS Faking volumetric lights (July 30, 2019)

Today, I decided I was going to add some volumetric lights into the game. I’ve used really clever solutions like Aura before, but I wanted something more lightweight that’ll run on lower-end PCs and maybe Nintendo switch… so I decided to fake it.

Posted by on

18

Faking volumetric lights
Imgur.com

"Today, I decided I was going to add some volumetric lights into the game. I’ve used really clever solutions like Aura before, but I wanted something more lightweight that’ll run on lower-end PCs and maybe Nintendo switch… so I decided to fake it.
Start with an unlit cone -> Use the vertex position (z-axis) to set the alpha along with the height of the cone -> Make the edges fade out nicely using the dot product of world normal and view direction.

It sounds so simple when I write it out like that, but it took me some time to figure out. Feels good to fake volumetric lights with just a cone and a relatively small shader. It has pretty much zero impact on performance." (c) Sean, the Wonhon: A Vengeful Spirit developer.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: