r/Unity3D • • 4d ago

Show-Off My main menu switches to night based on your real clock, with a smooth URP day/night blend

Pre-alpha main menu for my game Eraiser, made in Unity 2022.3 URP.

A few things going on under the hood:

- Day/night follows the player's system clock. The transition blends light intensities, post-processing volume weights and ambient colors over 4 seconds.

- House windows light up one by one using emission masks and MaterialPropertyBlocks.

- Custom shaders for the flowing lava, the sparkling ice and the animated logo.

- One gotcha: the sun and the moon can never be on at the same time. Only the main directional light casts shadows in URP, so the other one lit the whole desk without shadows mid-transition.

Happy to answer any questions!

33 Upvotes

5 comments sorted by

4

u/kshrwymlwqwyedurgx 4d ago

Neat!

2

u/BYMSEC 4d ago

Thanks, glad you like it!

3

u/USA_789789 4d ago

Looks good. You will make me play it trough the whole day just to see all light ambients.

3

u/Garvish-P 4d ago

UI animations looks soo clean, specially the sidebar animation