Notifications
SunLight – Location based Time of Day
Showcase
164
0
SunLight calculates the light color and orientation of a directional light source based on geographical location and time of day to create a realistic sun light source.
SunLight calculates the light color and orientation of a directional light source based on geographical location and time of day to create a realistic sun light source. Works with Unity’s dynamic skybox introduced in Unity 5. Simple to use ; just drag it into your scene and let SunLight handle the directional light. SunLight creates two directional lights, one to illuminate the scene and another one is used to trigger Unity’s Skybox only (layer mask set to nothing). This is necessary to avoid unwanted directional illumination from below the horizon in twilight conditions. Supports C# and Unity Script (JS) Manual / Script Reference Usage: Drag the prefab (C# and JS based prefabs available) into the scene and set location and time in inspector. – Chose a location from 10 presets or manually set latitude and longitude. – Choose whether to let SunLight handle the progress of time or control it in your script. – If you wish you can manually override the azimuth (horizontal rotation) of the sun via inspector or in your own script. New in 1.1: Added the option to set a custom north direction. Works with Unity's built-in procedural skybox, making it rock solid and 100% compatible.
Mark Hessburg
Dev, 3D Artist, Sound Designer - Owner
12
Comments