Skip to content

Commit 3e85a80

Browse files
committed
Merge pull request godotengine#122131 from jcostello/jcostello/physical-static-baked-lights
Fix physical static baked light energy
2 parents 8b28786 + aecdb33 commit 3e85a80

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scene/3d/lightmap_gi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_pa
13761376
if (use_physical_light_units) {
13771377
energy *= light->get_param(Light3D::PARAM_INTENSITY);
13781378
linear_color *= light->get_correlated_color().srgb_to_linear();
1379+
energy *= 1.0 / Math::PI;
13791380
}
13801381

13811382
if (Object::cast_to<DirectionalLight3D>(light)) {

0 commit comments

Comments
 (0)