Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LightmapGI not taking environment sky rotation into account when baking #95000

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 1, 2024

The sky rotation now affects the baked environment lighting as it should, making it match how real-time ambient light rendering works.

Tested on all rendering methods. Thanks @permelin for contributing this fix 🙂

Testing project: test_lightmap_environment_custom_orientation.zip

Preview

Left = real-time lighting, right = baked lighting.

Default sky rotation

No change (as expected).

Before After
Before After

Custom sky rotation

Previously, the baked environment light did not rotate at all.

Before After
Before After

@Calinou Calinou requested review from a team as code owners August 1, 2024 00:24
@Calinou Calinou force-pushed the lightmapgi-environment-fix-custom-rotation-bake branch 3 times, most recently from ed8f9c9 to dd4ff7e Compare August 1, 2024 00:25
@Calinou Calinou added this to the 4.4 milestone Aug 1, 2024
@Calinou Calinou added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Aug 1, 2024
…baking

The sky rotation now affects the baked environment lighting as it should,
making it match how real-time ambient light rendering works.

Co-authored-by: Per Melin <git@melin.net>
@Calinou Calinou force-pushed the lightmapgi-environment-fix-custom-rotation-bake branch from dd4ff7e to 661cf1f Compare August 5, 2024 16:00
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@akien-mga akien-mga merged commit cba8e3b into godotengine:master Aug 16, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
@Calinou Calinou deleted the lightmapgi-environment-fix-custom-rotation-bake branch October 5, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan: LightmapGI does not take custom sky rotation into account
4 participants