Lights, sky and environment¶
Lights¶
With Directional light and Camera attributes both on Simulate Unreal (the default), lights keep Unreal's brightness, and Unreal's exposure is exported with them (see Exposure), so a level looks as bright as it did in Unreal: a night level lit by a 0.2 lux moon stays night. Unreal shows a white surface under L lux as L / π; Godot shows it under a light of energy E as E. So every light gets Unreal's value / π: a directional light energy lux / π, and point, spot and rect lights candelas / π (with physical light units, the lux and lumens that light the same). The sky and fog are scaled with the sun (see Sky and Fog).
With either set otherwise, lights are exported close to Godot's default brightness instead, so a level looks right with Godot's default exposure, and UE2GD keeps the lights' ratios rather than their values:
- Directional lights follow the Directional light setting (below).
- Point, spot and rect lights keep their ratios to each other. The level's median one gets energy 1 (3 in a level with no directional light, lit only by them), and none gets more than 16.
- Rect lights become AreaLight3D in Godot 4.7 or newer. In older versions they become spot lights (a 90° cone, the same brightness), and the summary says so. The Godot version is taken from the existing project, or from the Godot executable for a new project.
- Physical light units (off by default, under Show all settings) is a setting for new projects only. An existing project's own setting is never changed; the export follows it. Lights get the same brightness either way, in lux and lumens instead of energy.
Directional light¶
| Option | |
|---|---|
| Simulated Unreal directional light (default) | With Camera attributes on Simulate Unreal, Unreal's brightness (lux / π, see Lights). Otherwise the level's brightest directional light gets Godot's default brightness (energy 1, or 100 000 lux with physical light units) and the others keep their ratio to it. Either way with Unreal's direction, colour and shadows. |
| Default Godot directional light | Unreal's direction and shadows, with Godot's default brightness and colour. A level without a directional light gets one, where Godot's editor preview puts the sun. |
| No directional light | Directional lights are left out. |
World environment¶
The level gets a WorldEnvironment node. World environment, in the settings window's Environment section, decides its Environment:
| Option | |
|---|---|
| Simulate Unreal (default) | The sky, with the sky light's intensity scaling the ambient light (up to 4 times), fog (see Fog), and the post process volume's ambient occlusion, reflections, global illumination, bloom, contrast and saturation, with AgX tonemapping, each as the settings below choose. |
| Godot defaults | Only the sky, with everything else left at Godot's defaults. |
| None | No Environment, so Godot uses the project's default environment. |
Post process settings are read from the unbound post process volume. With Simulate Unreal, the rest of the Environment section chooses what goes in:
| Setting | |
|---|---|
| Fog | See Fog. |
| Tonemap | AgX (default, closest to Unreal's filmic tonemapper), Filmic, ACES, Reinhard or Linear (none). |
| Glow (Unreal's bloom) | Glow when Unreal has bloom, at a strength following its bloom intensity. |
| Ambient occlusion (SSAO) | SSAO when Unreal's post process has ambient occlusion, at its intensity. |
| Screen-space reflections | SSR when Unreal has Lumen or screen-space reflections. |
| Global illumination (SDFGI) | SDFGI when Unreal uses Lumen global illumination. It costs GPU time. |
| Contrast and saturation | The post process volume's contrast and saturation as the Environment's adjustments. |
All are on by default; turn one off to leave it out. SSAO, SSR and SDFGI need the Forward+ renderer.
Fog¶
Unreal's Exponential Height Fog thins with height: it halves every 1000 / Fog Height Falloff units above the fog actor, so the ground is hazy while the sky above stays clear. Godot's exponential fog is the same everywhere, so UE2GD sets its density to Unreal's fog density at the level's ground (the median height of its static meshes). Distant hills haze as in Unreal and the sky stays visible. Unreal's second fog layer is not exported. The fog's colour is Unreal's inscattering colour; with Unreal's brightness (see Lights) its brightness too, as the fog light energy, so night fog stays dark.
Fog chooses what the fog becomes:
| Option | |
|---|---|
| Exponential height fog (default) | Godot's exponential fog, as above. |
| Simulate Unreal (exponential, and volumetric when Unreal's is) | The exponential fog, and the FogVolume below when volumetric fog is on in Unreal. |
| Volumetric fog only (FogVolume) | Only the FogVolume below. |
| No fog | No fog. |
It replaces 1.1's Volumetric fog checkbox; settings saved with it ticked become Simulate Unreal.
With volumetric fog (Simulate Unreal with volumetric fog on in Unreal, or Volumetric fog only), the level gets a FogVolume whose fog material falls off with height exactly as Unreal's does, centred on the fog actor and covering the level, with Unreal's volumetric albedo, emissive and extinction scale. The Environment's volumetric fog reaches Unreal's Volumetric Fog View Distance, with no global density: uniform volumetric fog would hide the sky. Volumetric fog needs the Forward+ renderer and costs GPU time.
Exposure¶
Camera attributes decides the WorldEnvironment's CameraAttributesPractical:
| Option | |
|---|---|
| Simulate Unreal (default) | Unreal's exposure. Auto exposure when Unreal's post process volume uses it, with its exposure bias as the exposure multiplier (Unreal's default bias is Godot's default) and its Min and Max EV100 as Godot's min and max sensitivities (100 × 2^EV); or its manual exposure. With Directional light also on Simulate Unreal, lights keep Unreal's brightness (see Lights) and the bias is kept as it is; otherwise it is held within two stops and the limits are Godot's. |
| Godot defaults | A CameraAttributesPractical with Godot's defaults, ready to adjust. |
| None | No camera attributes. |
Godot's auto exposure is close to Unreal's, not the same: it averages the scene's brightness where Unreal takes a histogram of it, so a level with a few very bright lights may settle a little darker, and Unreal's manual exposure is matched by a fixed calibration. Emissive materials are still compressed to Godot's range (see What gets exported), so very bright emission glows less than in Unreal.
Godot's Compatibility renderer has no auto exposure, so a level relying on it looks brighter there than in Forward+ or Mobile.
Sky¶
Used when there is a World environment. With Unreal's brightness (see Lights), Sky++, the toon sky and Godot's default sky are scaled to the sun, so a moonlit sky is as dark as its moon; an HDRI is Unreal's own brightness already. When Unreal HDRI is chosen but the sky light captures the scene (or has no cubemap), there is no HDRI to export: Sky++ is used instead, behind the level's own sky meshes, and the summary says so.
| Option | |
|---|---|
| Sky++ (day and night, clouds) (default) | Sky++ by Ansol (CC0), res://ue2godot/Sky/ue2godot_sky_plus.gdshader. Atmospheric scattering drawn from the sun light, so the same sky is midday, sunset or night wherever the sun is, with a sun disc and stars. Its volumetric cumulus and cirrus clouds are turned on when the level has a Volumetric Cloud or a sky sphere, and left off otherwise (they are the costly part). It needs a sun: a level without a directional light gets the Godot default sky, and the summary says so. Its settings are uniforms in the Environment's sky material, and an edited copy is kept on re-export (an unedited one from an earlier UE2GD is updated). The Compatibility renderer draws it without the cumulus clouds. |
| Toon (cartoon sky and clouds) | Cartoon sky shader by OdyDev (CC0), res://ue2godot/Sky/ue2godot_sky_toon.gdshader. A two-tone sky with a sun disc that follows the sun light and drifting cartoon clouds, for stylised levels. Its colours, cloud size and speed are uniforms in the Environment's sky material; it doesn't need a sun. |
| Godot default sky | Godot's ProceduralSkyMaterial. |
| Unreal HDRI (not recommended) | The sky light's cubemap, saved as a 2048-wide HDR panorama and drawn by res://ue2godot/Sky/ue2godot_sky_hdri.gdshader. A panorama's top rows all meet in one point, which pinches straight overhead; after catprisbrey's CC0 Procedural Sky Blended Cover, the shader blurs the panorama across its rows near each pole, so the pinch fades into a haze (pole_blend_strength sets how far). Sky light cubemaps are small, so it is blurry. |
| No sky | A plain dark background and a flat ambient light, for indoor and underground levels. |
Sky spheres (a big mesh drawing the sky around the level) are exported like other meshes. Their material is translated when it draws from a cube map or projects a texture by the view direction, so they show their sky instead of a flat bake; turn the sky sphere off or delete it in Godot if you would rather see Sky++ behind it.
Unreal's own cubemaps
Unreal's cubemaps, such as DaylightAmbientCubemap, are Epic's engine content, which may only be used with
Unreal. The summary warns when one is used. Sky++ avoids the problem.