Reflection probes

    A probe of this type captures the surroundings (as a sort of 360 degrees image), and stores versions of it with increasing levels of blur. This is used to simulate roughness in materials, as well as ambient lighting.

    While these probes are an efficient way of storing reflections, they have a few shortcomings:

    • They work best for rectangular shaped rooms or places, otherwise the reflections shown are not as faithful (especially when roughness is 0).

    Create a ReflectionProbe node and wrap it around the area where you want to have reflections:

    This should result in immediate local reflections. If you are using a Sky texture, reflections are by default blended with it.

    By default, on interiors, reflections may appear not to have much consistence. In this scenario, make sure to tick the “Box Correct” property.

    ../../_images/refprobe_box_property.png

    This setting changes the reflection from an infinite skybox to reflecting a box the size of the probe:

    The probe captures the surrounding from the center of the gizmo. If, for some reason, the room shape or contents occlude the center, it can be displaced to an empty place by moving the handles in the center:

    ../../_images/refprobe_center_gizmo.png

    By default, shadow mapping is disabled when rendering probes (only in the rendered image inside the probe, not the actual scene). This is a simple way to save on performance and memory. If you want shadows in the probe, they can be toggled on/off with the Enable Shadow setting:

    Finally, keep in mind that you may not want the Reflection Probe to render some objects. A typical scenario is an enemy inside the room which will move around. To keep objects from being rendered in the reflections, use the Cull Mask setting:

    ../../_images/refprobe_cullmask.png

    If you are using reflection probes in an interior setting, it is recommended that the Interior property be enabled. This stops the probe from rendering the sky and also allows custom ambient lighting settings.

    When probes are set to Interior, custom constant ambient lighting can be specified per probe. Just choose a color and an energy.

    Multiple reflection probes can be used, and Godot will blend them where they overlap using a smart algorithm:

    ../../_images/refprobe_blending.png

    As you can see, this blending is never perfect (after all, these are box reflections, not real reflections), but these artifacts are only visible when using perfectly mirrored reflections. Normally, scenes have normal mapping and varying levels of roughness, which can hide this.

    Alternatively, Reflection Probes work well blended together with Screen Space Reflections to solve these problems. Combining them makes local reflections appear more faithful, while probes are only used as a fallback when no screen-space information is found:

    Finally, blending interior and exterior probes is the recommended approach when making levels that combine both interiors and exteriors. Near the door, a probe can be marked as exterior (so it will get sky reflections) while on the inside, it can be interior.

    In the current renderer implementation, all probes are the same size and are fit into a Reflection Atlas. The size and amount of probes can be customized in Project Settings -> Quality -> Reflections

    The default setting of Atlas Subdiv: 8 will allow up to 16 reflection probes in a scene. This value needs to be increased if you need more reflection probes.

    ../../_images/refprobe_atlas.png