2D Toolkit Forum

2D Toolkit => Support => Topic started by: DJVDJV on September 05, 2014, 09:25:48 am

Title: 2DTK and night/day on tilemap scenes
Post by: DJVDJV on September 05, 2014, 09:25:48 am
Hello,

I would like to get night/day cycle to work.

What is best way to do  shoothly changing  night/day cycle to tilemap scene? (I would like to use one map not 2 different (Dark for night and light for day))

Title: Re: 2DTK and night/day on tilemap scenes
Post by: unikronsoftware on September 05, 2014, 10:04:23 am
Use (create?) a shader that has a color parameter, and then change this parameter globally (Shader.SetGlobalColor). If all the rest of your sprites use the same parameter, you'll have everything fitting in quite nicely.