Level Editor/Entities/Lights: Difference between revisions
Jump to navigation
Jump to search
TeamSpecBot (talk | contribs) Level Editor: Omni and Spot lights page |
TeamSpecBot (talk | contribs) American spelling |
||
| Line 14: | Line 14: | ||
# Choose '''Functional > Create Omni Light''' or '''Create Spot Light'''. | # Choose '''Functional > Create Omni Light''' or '''Create Spot Light'''. | ||
# Click where it goes. A spot light points along its forward direction; aim it with the [[Level Editor/Tools/Move, Rotate and Scale|Rotate]] tool. | # Click where it goes. A spot light points along its forward direction; aim it with the [[Level Editor/Tools/Move, Rotate and Scale|Rotate]] tool. | ||
# Set its | # Set its color, brightness and range in the inspector. | ||
In the editor an omni light shows a wireframe sphere at its range and a spot light a cone and an arrow, both in the light's | In the editor an omni light shows a wireframe sphere at its range and a spot light a cone and an arrow, both in the light's color. Their strength is '''Light Gizmo Opacity''' in [[Level Editor/Settings|Settings]]. | ||
== Inspector == | == Inspector == | ||
| Line 23: | Line 23: | ||
{{Property row|name=Point Name|type=Text|default=empty|desc=A label shown above it in the editor.}} | {{Property row|name=Point Name|type=Text|default=empty|desc=A label shown above it in the editor.}} | ||
{{Property row|name=Show Visualization|type=Check box|default=On|desc=Draw the range sphere or cone. Turn it off where many lights crowd the view.}} | {{Property row|name=Show Visualization|type=Check box|default=On|desc=Draw the range sphere or cone. Turn it off where many lights crowd the view.}} | ||
{{Property row|name=Light Color|type= | {{Property row|name=Light Color|type=Color|default=White|desc=The light's color.}} | ||
{{Property row|name=Light Energy|type=Number|default=1|desc=How bright it is.}} | {{Property row|name=Light Energy|type=Number|default=1|desc=How bright it is.}} | ||
{{Property row|name=Light Indirect Energy|type=Number|default=1|desc=How much it adds to bounced light in the bake.}} | {{Property row|name=Light Indirect Energy|type=Number|default=1|desc=How much it adds to bounced light in the bake.}} | ||
{{Property row|name=Light Bake Mode|type=List|default=Dynamic|desc=How the light takes part in the lightmap bake. Disabled leaves it out of the bake.}} | {{Property row|name=Light Bake Mode|type=List|default=Dynamic|desc=How the light takes part in the lightmap bake. Disabled leaves it out of the bake.}} | ||
{{Property row|name=Shadow Enabled|type=Check box|default=Off|desc=Cast real-time shadows. Shadows are expensive; use them only where they matter.}} | {{Property row|name=Shadow Enabled|type=Check box|default=Off|desc=Cast real-time shadows. Shadows are expensive; use them only where they matter.}} | ||
{{Property row|name=Omni Range|type= | {{Property row|name=Omni Range|type=Meters|default=5|desc=''Omni.'' How far the light reaches.}} | ||
{{Property row|name=Omni Attenuation|type=Number|default=1|desc=''Omni.'' How quickly it fades with distance.}} | {{Property row|name=Omni Attenuation|type=Number|default=1|desc=''Omni.'' How quickly it fades with distance.}} | ||
{{Property row|name=Spot Range|type= | {{Property row|name=Spot Range|type=Meters|default=5|desc=''Spot.'' How far the cone reaches.}} | ||
{{Property row|name=Spot Angle|type=Degrees|default=45|desc=''Spot.'' How wide the cone is.}} | {{Property row|name=Spot Angle|type=Degrees|default=45|desc=''Spot.'' How wide the cone is.}} | ||
{{Property row|name=Spot Angle Attenuation|type=Number|default=1|desc=''Spot.'' How softly the cone's edge fades.}} | {{Property row|name=Spot Angle Attenuation|type=Number|default=1|desc=''Spot.'' How softly the cone's edge fades.}} | ||
Latest revision as of 04:44, 20 October 2026
| Lights | |
|---|---|
| Made with | Functional > Create Omni Light / Create Spot Light |
| What it is | Point lights that shine in every direction, and spot lights that shine in a cone |
| In the game | Yes, it is exported with the map |
A map is lit by the sun (set in Map Config > Environment), the sky's ambient light, and the lights you place:
- An Omni Light shines in every direction from a point: a lamp, a bulb, a fire.
- A Spot Light shines in a cone: a floodlight, a torch beam, a window's shaft of light.
Lights are baked into the lightmap when you bake (see Lighting and lightmaps).
Placing a light
- Choose Functional > Create Omni Light or Create Spot Light.
- Click where it goes. A spot light points along its forward direction; aim it with the Rotate tool.
- Set its color, brightness and range in the inspector.
In the editor an omni light shows a wireframe sphere at its range and a spot light a cone and an arrow, both in the light's color. Their strength is Light Gizmo Opacity in Settings.
Inspector
Besides its own two settings, a light has all the standard light settings. The ones you will use most:
| Setting | Type | Default | What it does |
|---|---|---|---|
| Point Name | Text | empty | A label shown above it in the editor. |
| Show Visualization | Check box | On | Draw the range sphere or cone. Turn it off where many lights crowd the view. |
| Light Color | Color | White | The light's color. |
| Light Energy | Number | 1 | How bright it is. |
| Light Indirect Energy | Number | 1 | How much it adds to bounced light in the bake. |
| Light Bake Mode | List | Dynamic | How the light takes part in the lightmap bake. Disabled leaves it out of the bake. |
| Shadow Enabled | Check box | Off | Cast real-time shadows. Shadows are expensive; use them only where they matter. |
| Omni Range | Meters | 5 | Omni. How far the light reaches. |
| Omni Attenuation | Number | 1 | Omni. How quickly it fades with distance. |
| Spot Range | Meters | 5 | Spot. How far the cone reaches. |
| Spot Angle | Degrees | 45 | Spot. How wide the cone is. |
| Spot Angle Attenuation | Number | 1 | Spot. How softly the cone's edge fades. |
| Distance Fade | Group | Off | Fade the light out beyond a distance from the camera, to save performance in big maps. |
In the 3D skybox
An omni or spot light placed inside the 3D skybox miniature lights only the skybox, scaled up with it.