DirectionalLight
A sun-like light that illuminates the entire map from a single direction. Also controls ambient sky lighting and the skybox texture. Every map should have exactly one.
Properties
Color Color The color of the directional light. Represents sunlight or the dominant light source for the map. Intensity Float The strength of the directional light. Ambient Color Color The color of the ambient sky contribution. This is indirect light that fills outdoor shadows and is cast from the entirety of the skybox, essentially the color of the atmosphere. Ambient Intensity Float The strength of the ambient sky contribution. Skybox String Path to a skybox texture. Notes
DirectionalLight is a static light. Its direction is determined by the entity’s rotation in the editor, rotate it to angle the sun. The forward vector of the entity becomes the light direction. This is visualized with the blue arrow from every entity in the editor.
Every map should have exactly one DirectionalLight. It’s used for the “sun” light across the map, the skybox, and render target shadow rotation.
The Skybox property expects a path to a texture relative to the Content directory. In the FPS template, it’s setup to use all DDS files from ‘Textures/Sky’ as skybox textures, so typically you’ll want to set this value to one of the files in there. If you leave it blank the sky will default to whatever is set in GameEngine.cs.