Jussi Kemppainen | Drivers of the Apocalypse Profile picture
Lead VFX artist @RemedyGames (Max Payne) + solodev vehicle combat game Drivers of the Apocalypse, founder @Rovio animation. 27y industry exp.

Jan 27, 2023, 6 tweets

I wrote a completely custom shader for relighting a flat 2D background image in Unity. All realtime lighting in the environment are hand painted: the shadows and the moving light #indiedevhour

the texture passes

The shaders are getting rather complicated as I needed to redo the URP lighting math completely custom on unlit shaders.

Revealing another texture on areas the light hits. Complete with shadows to do the trick.

all materials are unlit

This is not perfect as it tends to bug out when multiple lights are close by, but I can work around the limitations.

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling