You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LightmapGI does not take custom sky rotation into account.
This works in 3.4.1.stable and 3.5.beta (f2ddafd), so this is a regression in master.
Default sky rotation
Note that lighting comes from the bottom due to #56079. Regardless, changing the sky orientation doesn't affect the rotation of environment lighting in the slightest.
Custom sky rotation
Sky rotation in the background does not reflect the sky rotation taken into account by the generated (ir)radiance map due to #56136. Nonetheless, the sky is still rotated in the generated (ir)radiance map.
Steps to reproduce
Add a WorldEnvironment node with a PanoramaSkyMaterial. Adjust the sky's rotation in the resource options (try (0, 0, 1.57)).
Add a DirectionalLight and set its Energy to 0, so that the preview light is disabled and it does not intefere with baking.
Add a LightmapGI node. Set the environment mode to Scene.
Instance two identical 3D scenes imported with the Static Lightmaps option. Right-click one of them in the Scene tree dock then enable Editable Children. Select its child mesh and set Global Illumination > Mode to Disabled, so that it is not included in baking. This step is not required, but it's useful to compare real-time ambient lighting with baked ambient lighting.
Select the LightmapGI node and click Bake at the top of the 3D editor viewport.
Admittedly, I'm in over my head here, but this seems to do the trick. I'm absolutely not 100% sure about the second change, but it feels correct if we're to bring the ray into the local space of the sky. And without it the light is always off by 180° around the y axis.
Related to #56079.
Godot version
4.0.dev (489f11e)
System information
Fedora 34, GeForce GTX 1080 (NVIDIA 470.74)
Issue description
LightmapGI does not take custom sky rotation into account.
This works in 3.4.1.stable and 3.5.beta (f2ddafd), so this is a regression in
master
.Default sky rotation
Note that lighting comes from the bottom due to #56079. Regardless, changing the sky orientation doesn't affect the rotation of environment lighting in the slightest.
Custom sky rotation
Sky rotation in the background does not reflect the sky rotation taken into account by the generated (ir)radiance map due to #56136. Nonetheless, the sky is still rotated in the generated (ir)radiance map.
Steps to reproduce
(0, 0, 1.57)
).Minimal reproduction project
test_lightmap_environment_custom_orientation_master.zip
The text was updated successfully, but these errors were encountered: