2d day and night cycle

Hi Guys, I’m looking to hire a programmer to work on a 2d day and night cycle. However - I’m not entirely sure which is better suited and what kind of questions to ask.

Would a total image replacement work better which is run by code or some kind of shader for the effect instead.

The intended prototype would be from a top down perspective. Lastly, I would prefer to the day and night cycle to blend from one to the other over time.

Any help is greatly appreciated.

This sounds like some shader magic @Murgilod can work her magic on perhaps. IIRC @angrypenguin was doing something with a day night cycle as well, though not sure if it is applicable to your example.

Thanks!

1 Like

Probably post processing could help achieve desired effect.

Ahh ok, so I assume that post processing can be controlled by script ?

Here is some example for
Post Processing 2.2
https://docs.unity3d.com/Packages/com.unity.postprocessing@2.2/manual/Manipulating-the-Stack.html
Otherwise look here
https://docs.unity3d.com/Manual/com.unity.postprocessing.html

1 Like

I’m currently elbow deep in a big project so I can’t help a super huge amount, but what I’d do is set up a LUT for dawn, afternoon, sunset, and night; set up a shader to lerp between these at the appropriate time; then apply the lerp’d value to an image effect. It’s not a terribly elegant solution, but it’s a rough approximation of what I’m doing right now since LUTs aren’t terribly computationally expensive.

1 Like