Attention

You are reading the latest (unstable) version of this documentation, which may document features not available or compatible with Godot 3.x.

Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

Lights

Warning

By default, lamps in Blender have shadows enabled. This can cause performance issues in Godot.

Warning

Lamps are exported using their "Blender Render" settings. When Blender 2.8 is released, this will be removed and this part of the exporter will change.

Sun, point and spot lamps are all exported from Blender along with many of their properties:

../../../_images/light_properties.jpg

There are some things to note:

  • In Blender, a light casts light all the way to infinity. In Godot, it is clamped by the attenuation distance. To most closely match between the viewport and Godot, enable the "Sphere" checkbox. (Highlighted green)

  • Light attenuation models differ between Godot and Blender. The exporter attempts to make them match, but it isn't always very good.

  • Spotlight angular attenuation models also differ between Godot and Blender. The exporter attempts to make them similar, but it doesn't always look the same.

  • There is no difference between buffer shadow and ray shadow in the export.