This is the defining entity for your map. It sets the scene and mood for the entire level.
This is the defining entity for your map. It sets the scene and mood for the entire level.
Although, the below fields are the only ones listed in the entity editor, there are others available. The worldspawn entity also controls the lighting of the overall map.
Some of these missing fields are as follows:
_sun_light controls the brightness of the sun. It is the light produced from the sky* (see note). The value can range any where from 0 on up. _sun_angle sets the angle from which the sun is shining down. It has two numbers that reflect the yaw and pitch respectively. Yaw is the direction it is heading such as 0 is East and 90 is North. Pitch is the downward (or upward) angle of the light whereas 0 is horizontal, -90 is straight down and 90 is straight up. _sun_color is the color of the light. Is is represented as the vector RGB color (1 0 0 = red). _sun_ambient is the amount of light received by the shadows that have been cast from the sun. It is like the lighting that is reflected into the areas that do not receive direct sun light. It's value is anywhere from 0 to the _sun_light value. _sun_diffuse is the strength of the shadow lines. The higher the diffuse, the softer the shadow edges appear. This can be any value between 0 and the _sun_light value.
The figures I tend to use in my maps, as a reference for you, are as follows:
NOTE: I have found that in some cases the sky lighting does not work right away. I do not know if this is the fault of the editor or engine or even me, but I have found a way around this. Select all of the sky textures and go to the texture editor. Check the box for light then enter a value of 10 in the value box. This seems to have to solved my problem. (Thanks to The Jeep)