- Home /
switchable lightmaps
Is it possible to have different sets of lightmaps set up to be switchable? For instance if you wanted to be able to turn lights on and off within a room, could that be achieved by switching out lightmap sets? Or to change the time of day outdoors?
Answer by testure · Jul 16, 2011 at 07:01 AM
You can do this already with deferred lighting and dual lightmaps.. no need to switch between two lightmap sets because it's already handled. It's not sufficient for a day/night cycle, but it would work well enough for a single room.
For an outdoor day/night cycle you're probably not going to want to use lightmaps at all- because lightmaps bake shadow information into the ground- you'd need a lightmap for every minute of the day unless you wanted your shadows to pop around.
As testure says bake lightmaps for every $$anonymous$$utes it's maybe complicated :D. But if you need something like change between more than 2 lightmaps set for one level you look the method in this topic :
http://answers.unity3d.com/questions/49135/how-i-can-change-lightmaps-at-runtime.html#answer-359345