Godot Engine – Multi-platform 2D and 3D game engine
Fix physical static baked light energy
Juan Manuel Costelloaecdb3355622
diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cppindex 121c5049849..d1e199c6a72 100644--- a/scene/3d/lightmap_gi.cpp+++ b/scene/3d/lightmap_gi.cpp@@ -1376,6 +1376,7 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_paif (use_physical_light_units) {energy *= light->get_param(Light3D::PARAM_INTENSITY);linear_color *= light->get_correlated_color().srgb_to_linear();+ energy *= 1.0 / Math::PI;}if (Object::cast_to<DirectionalLight3D>(light)) {