Light probes
BeginnerDesignerArtist Light probes capture the lighting at the position you place them. They simulate indirect light, the effect of light bouncing off surfaces and illuminating other surfaces. They can make a dramatic difference to the mood and appearance of your scene. 0.7 倍 1.0 倍 1.2 倍 1.5 倍 2.0 倍 point light surrounded by light probes in the Scene Editor. The probes form 3D areas (shown in the Scene Editor by the yellow wireframe connecting the probes). Xenko colors pixels within a light probe area to simulate the effect of light bouncing from nearby surfaces. To find a color for a given pixel, Xenko interpolates from the lighting captured by the four surrounding light probes. For example, in the screenshot below, notice how the red of the wall is reflected on the other objects. In the Scene Editor, this is also visible on the surface of the light probes themselves. Light probes affect all objects in the area they cover, including static and dynamic objects. You don’t need to enable any extra options on the entities that light probes affect.
1. Enable light probes in the graphics compositor
Xenko enables light probes by default in new projects. To make sure light probes are enabled:
- Asset View (in the bottom pane by default), double-click the Graphics Compositor asset. The graphics compositor editor opens.
- forward renderer node.
- Property Grid (on the right by default), make sure the Light probes checkbox is selected.
Graphics compositor page.
2. Create a light probe
Light > Light probe. Light probe component in the Property Grid. Light probes appear as spheres in the Scene Editor. Before you capture a light bounce for the first time, they have a completely black surface.3. Place light probes
3D volume. This means: - at least four light probes in the scene — enough to create the four points of a tetrahedron, as below:
-
A typical method is to place light probes in a grid across your scene covering a general area, as in the screenshots below:
Tip
Ctrl, and move it with the mouse.4. Capture lighting
- lighting options button to open the lighting options menu.
- Bounces, set the number of light bounces you want to capture. Multiple bounces simulate the effect of light bouncing between surfaces multiple times. This generally has the effect of brightening the lighting. Three or four bounces should be enough; beyond this, changes are almost unnoticeable. The number of bounces has no impact on runtime performance.
- Compute.
You can see the lighting on the surface of the light probes in the Scene Editor.
Reset light probes
lighting options menu, click Reset. This is useful after you change the lights in your scene and need to capture the lighting from scratch.Show and hide light probes in the Scene Editor
gizmo options in the Scene Editor toolbar, use the Light probes checkbox.Show and hide light probe volumes in the Scene Editor
gizmo options in the Scene Editor toolbar, use the Light probe volumes checkbox.See also
- Add a light
- Point lights
- Ambient lights
- Directional lights
- Skybox lights
- Spot lights
- Shadows
