Jussi Kemppainen Profile picture
Jan 27, 2023 6 tweets 2 min read Read on X
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 Image
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.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Jussi Kemppainen

Jussi Kemppainen Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @JussiKemppainen

May 30, 2023
I used the new @Photoshop beta generative fill and @Blender to blend together multiple @midjourney generated #AIArtworks to create a 2.5D location for a point and click adventure game. 🧵 #buildinpublic #gamedev
1/8
Link to the breakdown and devblog: echoesofsomewhere.com/2023/05/29/hom…

2/8
First, I generated a couple of dozen images in Midjourney. From those I chose 2 that I would combine to make the apartment.
3/8 ImageImage
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(