lights.rst 1.0 KB

123456789101112131415161718192021222324252627
  1. Lights
  2. ======
  3. .. warning::
  4. By default, lamps in Blender have shadows enabled. This can cause
  5. performance issues in Godot.
  6. .. warning::
  7. Lamps are exported using their "Blender Render" settings. When Blender 2.8
  8. is released, this will be removed and this part of the exporter will change.
  9. Sun, point and spot lamps are all exported from Blender along with many of their
  10. properties:
  11. .. image:: img/light_properties.jpg
  12. There are some things to note:
  13. - In Blender, a light casts light all the way to infinity. In Godot, it is
  14. clamped by the attenuation distance. To most closely match between the
  15. viewport and Godot, enable the "Sphere" checkbox. (Highlighted green)
  16. - Light attenuation models differ between Godot and Blender. The exporter
  17. attempts to make them match, but it isn't always very good.
  18. - Spotlight angular attenuation models also differ between Godot and Blender.
  19. The exporter attempts to make them similar, but it doesn't always look the
  20. same.
  21. - There is no difference between buffer shadow and ray shadow in the export.