Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
map_making:lighting_guide [2020/08/01 02:49] vmsize |
map_making:lighting_guide [2021/06/23 16:37] (current) fiveman1 |
||
---|---|---|---|
Line 14: | Line 14: | ||
* Controls the tint of the sun | * Controls the tint of the sun | ||
* GlobalShadows (default: true) | * GlobalShadows (default: true) | ||
- | * If false, there will be no shadows (not recommended, | + | * If false, there will be no shadows (it may look better to tweak part's CastShadow properties instead) |
* OutdoorAmbient (default: 127, | * OutdoorAmbient (default: 127, | ||
* Controls the color/ | * Controls the color/ | ||
* ClockTime (default: 14) | * ClockTime (default: 14) | ||
- | * Controls the time of day | + | * Controls the time of day and position of the sun |
* GeographicLatitude (default: 41.733) | * GeographicLatitude (default: 41.733) | ||
- | * Controls the latitude | + | * Controls the latitude |
* FogColor (default: 192, | * FogColor (default: 192, | ||
* Controls the color of fog | * Controls the color of fog | ||
Line 43: | Line 43: | ||
Increase the Ambient value to make shadows less dark so indoor areas have more visibility. Change the position of the sun so it is more directly overhead and creates less shadows. | Increase the Ambient value to make shadows less dark so indoor areas have more visibility. Change the position of the sun so it is more directly overhead and creates less shadows. | ||
+ | For properties that use Color3 values, simply use '' | ||
+ | |||
+ | ====How to add a Skybox===== | ||
+ | |||
+ | Create a Sky object in studio and put it inside your map model. Follow the instructions on this [[https:// | ||
+ | |||
+ | Next, put a script inside the Sky object. The script should say: | ||
+ | |||
+ | <code Lua> | ||
+ | script.Parent.Parent = game.Lighting | ||
+ | </ | ||
+ | |||
+ | All this does is change the parent of script.Parent (the Sky object) to game.Lighting. This just moves the Sky from your map model to game.Lighting where it belongs. | ||
+ | |||
+ | Finally, turn off the CelestialBodiesShown property of the Sky object if the skybox already has a sun, otherwise you will have two suns (the sun from the skybox images, and the sun added by Roblox). | ||
===== Related ===== | ===== Related ===== | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// |